Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debug executable option in Xcode Scheme

Tags:

Besides the obvious feature that is to permit the debugging of the app (most of the time using a Debug Configuration), why you should leave this option enabled, for example, even in Release Configuration?

What is the proper use of this feature?

like image 964
maross Avatar asked Apr 21 '15 12:04

maross


People also ask

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.

How do I enable debug mode 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.

What is debug symbols in Xcode?

Debug Symbols are additional information about your source code that are used to help debugging. See also this wikipedia article about debug symbols. They will not be submitted to the appstore as they are only part of debug-build while you only submit a release-build to the appstore.

Does Xcode have a debugger?

The Xcode debugger provides several methods to step through your code and inspect variables. You can precisely control execution of your code from a breakpoint, stepping into and out of called functions as necessary to determine where your bug occurs.


1 Answers

From Apple's website:

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. You probably want it on.

like image 173
Bruno Li Avatar answered Oct 20 '22 00:10

Bruno Li