简体   繁体   English

应用程序未运行时进行调试

[英]Debugging while app is not running

Is there a way to debug (breakpoints) my app via Xcode if it's not running already and was launched as a result of swiping a remote notification from the locked screen? 有没有办法通过Xcode调试(断点)我的应用程序,如果它还没有运行,并且是因为从锁定屏幕滑动远程通知而启动的?

Obviously I can't just add breakpoints and expect execution to halt since I need to fire the app via Xcode in order to debug? 显然我不能只是添加断点并期望执行停止,因为我需要通过Xcode启动应用程序才能进行调试?

You can launch the app in Xcode but set the scheme to wait for an external launch trigger. 您可以在Xcode中启动应用程序,但将方案设置为等待外部启动触发器。 In this mode Xcode will watch and wait for something else to open the app. 在这种模式下,Xcode将观看并等待其他内容来打开应用程序。

To do this, edit the scheme, select the info section and then select Wait for executable to be launched . 为此,请编辑方案,选择info部分,然后选择Wait for executable to be launched

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM