1

My app runs really slow with Xcode 4.5, and i just realized it's due the debugger always on. It seems you can't select NONE under Manage Schema/Release/Debugger, so how can you disable debugger on Xcode 4.5?

many thanks in advance

brainray
  • 12,512
  • 11
  • 67
  • 116
  • i meant the debugger is always on on REAL device. Running with simulator there is no problem because i can disable the debugger. – user1713182 Oct 02 '12 at 07:36
  • Welcome to Stack Overflow! Please take a look at this answer - does it help? http://stackoverflow.com/questions/6922408/can-i-disable-the-debugger-in-xcode-4 – brainray Oct 02 '12 at 07:41
  • thank you for the quick replay. I know that is possible to disable the debugger from edit schema but when i have upgraded to XCode 4.5 it seems the options NONE Debugger is disappeared when running on real device. – user1713182 Oct 02 '12 at 12:25

1 Answers1

0

It is unlikely that the slowness is due to the debugger being attached. It is more likely that the slowness is due to compiling in Debug rather than Release mode. Debug does not optimize the code. Release does. You can switch your configuration to Release and it should speed up, but be more difficult to debug. You can create separate Debug and Release schemes if you like.

Note that the specific difference in Debug and Release that matters here is the compiler optimization. Debug passes "-O0". Release passes "-Os". You could of course create a Debug configuration that passes "-Os" without changing other things (like turning off assertions, if your Release configuration does that).

Rob Napier
  • 286,113
  • 34
  • 456
  • 610
  • it is already set to release mode and it is slow. The strange thing is that i have only 2 options on debugger: GDB and LLDB. The NONE option disappear when i build on real device. – user1713182 Oct 02 '12 at 17:47