Cannot disable debugger with Xcode 4.5

这一生的挚爱 提交于 2019-12-14 02:23:58

问题


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


回答1:


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).



来源:https://stackoverflow.com/questions/12682658/cannot-disable-debugger-with-xcode-4-5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!