Xcode Scheme 中的调试可执行选项

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/29771855/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 07:02:28  来源:igfitidea点击:

Debug executable option in Xcode Scheme

iosxcodedebuggingxcode6

提问by maross

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?

除了允许调试应用程序的明显功能(大部分时间使用Debug Configuration)之外,为什么您应该启用此选项,例如,即使在Release Configuration 中

What is the proper use of this feature?

这个功能的正确用法是什么?

采纳答案by Bruno Li

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.

似乎所有这些都是在附加调试器的情况下启动您的应用程序。你可能想要它。