简体   繁体   English

如何使用先前的应用程序状态在模拟器中启动调试会话

[英]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.

相关问题 iOS守护程序应用程序无法启动(越狱) - 如何调试? - iOS Daemon app will not start (Jailbreak) - how to debug? 当React Native应用未在iOS设备上启动时如何调试 - how to debug when react native app doesnt start on ios device 当它在模拟器上而不在iPhone上运行时如何调试? - How to debug when it works on simulator but not on iPhone? 应用程序可以启动VPN会话吗? - Possible for an app to start an VPN session? iPhone模拟器不会退出以前版本的应用程序 - iPhone simulator doesn't quit previous version of app iPhone应用程序在打开时显示以前的状态 - IPhone app shows previous state when opening 应用程序崩溃与4.2 iPhone模拟器'设置启动与shell关闭' - App crashes with 4.2 iPhone simulator 'set start-with-shell off' iOS模拟器打开,然后xcode打开,应用程序在开始屏幕冻结 - iOS Simulator Opens then xcode opens, app freezes at start screen 如何从终止状态调试应该由位置服务启动的iPhone应用程序到后台? - How do I debug an iPhone app that's supposed to be launched by location services, into the background, from a terminated state? 应用程序在模拟器上崩溃,但在iPod 3.1.3上运行良好。 当应用程序在模拟器中运行时,超级类的init方法没有被击中(甚至在调试时) - App crashes on simulator but runs fine on iPod 3.1.3. The Super class' init method is not being hit (even at debug) when app runs in simulator
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM