39

I was watching a video lecture from iTunes U., where instructor showed how one can take a debugger section of the Xcode and was able to pull that window away from the main.

Unfortunately, video showed instructions on how to do it in Xcode3. How might one do it in Xcode4?

How can one either detach a debugger section or, possibly, configure preferences to do it automatically?

Dávid Pásztor
  • 51,403
  • 9
  • 85
  • 116
James Raitsev
  • 92,517
  • 154
  • 335
  • 470

3 Answers3

78

Open a new tab, show the debugger (cmd-shift-Y) and drag the divider all the way to the top. Close the navigator (cmd-0) and inspector windows (cmd-opt-0), then drag the tab off into a new window.

If you name the tab before you tear it off, e.g., "Debugger", then set up a Behavior in Xcode's preferences ( Preferences -> Behaviors -> Run Starts -> Show Tab "Debugger" ), it'll show that window when you run your app. It'll even recreate it if you close it.

If you have access to the WWDC 2011 videos, "Maximizing Productivity in Xcode 4" has a lot of great info.

Here's a screenshot before tearing the tab off: enter image description here

ruffin
  • 16,507
  • 9
  • 88
  • 138
Daniel Eckhart
  • 1,069
  • 9
  • 5
  • 1
    This is nice, but this is not a separate window, in a sense that i can't move it, say, to another screen. Is there a way to do that? – James Raitsev Aug 18 '11 at 23:59
  • 1
    You'll have to tear the tab off, just like in Safari. If you want just an bare editor window, you can hide the toolbar on the new widow, (View -> Hide Toolbar) . The Behaviors feature I mentioned will restore that state for you, too. – Daniel Eckhart Aug 19 '11 at 00:00
  • Sorry Daniel, Debugger does not show up in a "tab". Can you please post a screenshot of a debugger before tearing it off? – James Raitsev Aug 19 '11 at 00:41
  • (cmd-T) to create a new tab. Double-click in the tab title to change the name of the tab. – JaredH Mar 07 '13 at 03:27
  • 1
    Working in XCode 10 too. To rename the tab go to the Window menu (not the most intuitive - why cant you option click the tab name?) – wheeliebin Oct 01 '18 at 23:03
51

I know it's a little too late, but I'm going to be borrowing from this answer. Go to your preferences, go to the behaviour tab. Change the running behaviour to show a new window.

If you don't want the window to have an editor or toolbar, you can customise it that way too.

enter image description here

Community
  • 1
  • 1
Enrico Susatyo
  • 19,372
  • 18
  • 95
  • 156
  • Works great, thanks! Had no idea how much one can customise the behaviour of Xcode. – Andy Jan 29 '16 at 10:34
  • Thanks! Also pay attention to the `Pauses` options as well. That defines what happens when a breakpoint is hit (which may be closer to most of the people are looking for). – wye Apr 29 '16 at 17:38
  • What's the purpose of doing this? – mfaani Jun 13 '17 at 13:42
  • 1
    It's good for when you're using your laptop and want to debug on a separate dedicated window. @Honey – craft Aug 01 '18 at 13:25
3

Xcode 11

Change behaviour

Xcode -> Preferences... -> Behaviors -> Running -> Starts -> Show tab named <tab_name> in active window

After that <tab_name> tab will be opened automatically

To create a new tab manually:

  1. Create a new tab
File -> New -> Tab
  1. Rename the tab
Window -> Rename Tab... -> <tab_name>
yoAlex5
  • 29,217
  • 8
  • 193
  • 205