Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to show Xcode debugger in a window separate from Xcode?

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?

like image 371
James Raitsev Avatar asked Aug 18 '11 23:08

James Raitsev


People also ask

How do I show debugger in Xcode?

When you run an application in Xcode, the debugger is automatically started and attached to the process of the application. Click the Run button in the top left or press Command + R. From the moment the application is up and running, we can start inspecting the process and, if necessary, debug it.

How do I show the Xcode console?

Go to Xcode → Preferences → Debugging → On Start → "Show Console".

How do I open the output window in Xcode?

Shift-Cmd-R brings up the output window. There's also a preference in XCode to bring up the console after each launch - Xcode->Preferences->Debugging->On Start Show Console.

What is debugging executable in Xcode?

The “Debug executable” checkbox specifies whether or not you want to run with the debugger enabled. Once running, you can use Debug > Attach to Process on a process that has been launched with debugging disabled if needed. It seems like all this does is start your app with the debugger attached.


1 Answers

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

like image 117
Daniel Eckhart Avatar answered Oct 26 '22 11:10

Daniel Eckhart