无法使用Xcode 4.5禁用调试器 [英] Cannot disable debugger with Xcode 4.5

查看:61
本文介绍了无法使用Xcode 4.5禁用调试器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序在Xcode 4.5上运行非常慢,我只是意识到这是由于调试器始终处于打开状态.看来您无法在管理模式/发布/调试器"下选择无",那么如何在Xcode 4.5上禁用调试器?

非常感谢

解决方案

运行速度不太可能是由于附加了调试器而导致的.速度较慢的原因很可能是由于在调试"而不是发布"模式下进行编译.调试不会优化代码.发布确实.您可以将配置切换为发布",它应该可以加快速度,但是更难以调试.您可以根据需要创建单独的Debug和Release方案.

请注意,此处重要的Debug和Release的特定区别是编译器优化.调试通过"-O0".发行通过"-Os".当然,您可以创建一个传递"-O"的Debug配置,而无需进行其他更改(例如,如果您的Release配置执行此操作,则关闭断言).

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

解决方案

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

这篇关于无法使用Xcode 4.5禁用调试器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆