Debug executable option in Xcode Scheme

11,310

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.

Share:
11,310

Related videos on Youtube

maross
Author by

maross

iOS Engineer @ Cynny

Updated on June 15, 2022

Comments

  • maross
    maross about 2 years

    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?

    • trojanfoe
      trojanfoe about 9 years
      "From what I know in the release build symbolic debug info is not emitted." Check the build settings; they all have a Release and Debug version and it's very useful to retain the symbols for symbolicating crashes in the wild. Also some bugs only appear when optimisation is turned on.
    • maross
      maross about 9 years
      @trojanfoe It's correct, I removed that part
    • Lukas Kalinski
      Lukas Kalinski about 9 years
      Someone please answer this question? There is no info to find about it on Google as far as I can see...
  • Jeggy
    Jeggy over 6 years
    Link is broken :/
  • Stelabouras
    Stelabouras over 6 years
    Here's a working link.