user142019
user142019

Reputation:

Can I disable the debugger in Xcode 4?

I would like to not use the debugger (gdb), though I want to get output from my application (from stdout and stderr).

I find that I never use it, I always use NSLog (or, for C printf and for C++ std::cout).

How can I disable the debugger (even in the debug configuration)?

Upvotes: 5

Views: 16961

Answers (4)

yoAlex5
yoAlex5

Reputation: 34225

Xcode Debug executable

Debug executable - allows you to use debugger(breakpoints...) to debug binary

XCode v9.2

Project name -> Edit Scheme... -> Run -> deselect "Debug executable"

enter image description here

[Debug Build Configuration]

Upvotes: 3

slavlazar
slavlazar

Reputation: 224

In XCode 4 - at the top left where the Run and Stop buttons are, there's a drop down selection (the Scheme selection), click on the left drop down and then 'Edit Scheme...' Next, locate and click on your Debug scheme (should be titled 'Run YourAppName.app') on the left. Now in the main content area, click on the 'Info' tab and change your Debugger selection to None - save your settings by clicking OK

XCode 4 turn off Debugger in Debug scheme

Upvotes: 5

Joshua Nozzi
Joshua Nozzi

Reputation: 61228

If you mean the debugger console, then you can control whether it automatically appears using the Behaviors preference panel. If you want to see the output, you can instead have Xcode automatically navigate to the current run log (also controlled by Behaviors) on launch or (I think) as soon as there's any output.

If you really mean to say you don't use the debugger in general (pausing at breakpoints and examining variables, stepping through code, etc. then you're hurting yourself in a way that makes most developers cringe. It's like a carpenter boldly proclaiming he doesn't use the equivalent reality-checking tools: a tape measure and level. I hope I misunderstood you there.

Upvotes: 4

Kunal
Kunal

Reputation: 323

Next to run and stop - click on the Scheme area, select edit scheme - then on build configuration select release.

Not sure if that what you meant.

Upvotes: 5

Related Questions