[英]How start a debug session in the simulator with previous app state
I have a hard-to-catch error that only happend the 2 or 3 time I start my app, after a previous failure of it. 我有一个难以捕捉的错误,它是在之前失败后仅在启动我的应用程序的2或3次时发生的。
But because when I do Run&Debug from the XCode menu the app is delete from the simulator or device, I can debug it to find what is happening. 但是,因为当我从XCode菜单执行Run&Debug时,该应用已从模拟器或设备中删除,因此我可以对其进行调试以查找正在发生的情况。
I try to attach to the process, but when I succed is too late and the app crash. 我尝试附加到该过程,但是当我成功时已经太晚了,应用程序崩溃了。 I have the data of the crash, but can't make sense of it (and anyway, I want to know the trick!)
我有崩溃的数据,但无法理解(无论如何,我想知道窍门!)
So, how I start dirty from in the xcode debug session so I can debug AFTER the first run of the app? 那么,如何从xcode调试会话开始变脏,以便在应用程序首次运行之后进行调试?
而不是选择“ Build and Go”或“ Go(Debug)”,您应该从“运行”菜单中选择“调试”,这只会重新运行您的应用程序,而不重新安装它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.