通过“以状态5退出"对模拟器进行调试会导致崩溃.除非我有断点 [英] Debuging to simulator crashes with "exited with status 5" unless I have breakpoint

查看:54
本文介绍了通过“以状态5退出"对模拟器进行调试会导致崩溃.除非我有断点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

出于某种原因,我正在开发的应用具有非常差的PMT!字面上地!在大多数情况下,如果不在AppDelegate中放置断点,就无法使用模拟器进行调试.如果我不这样做,它的状态为"5".如果我插入一个断点并简单地继续,它就可以很好地工作,如果我在未连接到GDB的情况下在模拟器中运行该应用程序,那么它也可以工作.

For some reason the app I am working on has very bad PMT! Literally! Most of the time I cannot debug using the simulator without putting a breakpoint in my AppDelegate. If I don't it exists with "status 5". If I put a break point in and simple continue it works perfectly well, it also works if I run the app in the simulator when not connected to the GDB.

我在另一台机器上尝试了源代码,结果完全相同.我在设备上没有这个问题吗?!?!?!

I have tried the source on a second machine with exactly the same results. I dont have this issue building to the device?!?!?!

谢谢

推荐答案

来自: http://forums.pragprog.com/forums/100/topics/2168

Sep 14, 2010 9:55am

Mark Allen
(1 post)
I had this too. Fortunately I had the project under source control, so I did
a diff and realised the project file is not the culprit. Turns out there is no
need to create new projects or anything. Just delete your personal settings files
for the project. They will be username.mode1v3 and username.pbxuser. I didn’t 
figure out which file was the cause, but deleting them sorted it out.

这篇关于通过“以状态5退出"对模拟器进行调试会导致崩溃.除非我有断点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆