Xcode 方案中的调试可执行选项

Debug executable option in Xcode Scheme

除了允许调试应用程序的明显功能(大部分时间使用 调试配置)之外,为什么要启用此选项,例如,即使在发布配置?

如何正确使用此功能?

来自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.

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