132

Is it possible to detach the console/log window in Xcode 4?

Even better, how?

3
  • 24
    +1 know how you feel Commented Mar 15, 2011 at 0:45
  • 2
    one day i hope that i will be able to use visual studio with ios Commented Jul 31, 2011 at 6:44
  • 3
    You ought to select a best answer :P Commented Jul 22, 2012 at 20:33

3 Answers 3

126

Go to Xcode preferences, and open the Behavior tab.

Tell Xcode to open a tab called "Debugger" when "Run Pauses" or "Run Starts". Then run it, and break that Debugging tab out into another window (drag it off the tab bar into its own window by just letting it drop outside the current window). Now reform it to your hearts content; it will stay that way. Also don't forget the little controls at the top right of the console window that slide the local variable display out of the way so you can have a full-width console on demand. I am not sure about keyboard shortcuts for that yet.

I usually keep the Debugging tab and one other tab in a separate window, for debugging tasks, and all my other editing tabs in a different window (and the debugging window on a separate monitor with the simulator). With the settings above it also means that, while editing a debugger reaching a breakpoint, it will not interrupt my editing by suddenly bringing forth the console.

Sign up to request clarification or add additional context in comments.

10 Comments

The issue here is that when you want to close the project you need to close the debugger tab first or otherwise Xcode will consider it the "main" window for the next time you open the project and you ll end up with a full screen output window and no files visible when reopening the project.
I just quit XCode when closing out projects, when you re-start it will open both windows. Not perfect to be sure.
You just have to tell the system to open the Debugging window in a different tab as I outlined - then you can drag that tab out into its own window. Once you have a debugging specific tab you can customize it however you like and it will stay set the same way.
Aha I see... In preferences->behaviours we can tell it to open a tab with a name which we happen to call "Debugger. Then when that first opens we can set it up to only have the output log (or whatever) and to be a separate window.
Yes, exactly, each of the windows always remembers state. You may also want to turn off some other behaviors about automatically showing variables (which is half the log window when opened)
|
28

Sure, create a new tab, drag it off the original window, and expand the debugger area to be the whole tab. Now, whether Xcode will remember that tab and its placement is another matter. File a bug with Apple to let them know your displeasure.

5 Comments

ok, that's a tiny bit better, but far from ideal. I want the debug window on a 2nd monitor so I can actually, you know, reference the source code while looking at the debug output. Does Apple really think that there are no developers that use more than one monitor?
Xcode 4 has been written with the gazillion inch monitors Apple sells in mind, more than with smaller multimonitor configurations, or so it seems. I hate it too :)
I use it primarily with Spaces, when you break things out into different windows it's pretty usable on small monitors I think... one key is the ease of folding and un-folding the sidebars.
Apparently arranging windows as you want and dismissing them with "Close Workspace" gets Xcode to remember their placement better for that project. Something to try.
@sol What's still unsatisfactory about this solution for you? Is it that you still have the buttons at the top (Run, Stop, etc) taking up space?
7

Taking jshier's advice a step further, you can do File -> New Window, and expand the debug window to take up the entire window. But you have to manually expand it every time you open it. Ugh.

1 Comment

Also you can Hide Toolbar in the New Window if it is showing, to further isolate the log and free up some space.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.