XCode 4.2:当应用程序崩溃时,线程很少显示调用堆栈
由于我安装了最后一个 xCode(我之前的版本是 3.xx),因此很难调试崩溃的应用程序。事实上,调用堆栈通常是空的。显示的方法是
int main(int argc, char *argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, @"MyAppDelegate");
[pool drain];
return retVal;
}
Ex :
有人注意到这一点吗?它与以前的 XCode 在同一个项目上运行得很好。有什么解决办法吗?
Since I've installed the last xCode (my previous one was the 3.xx), a have hard times to debug my crashing apps. Indeed, the callstack is often empty. And the displayed method is
int main(int argc, char *argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, @"MyAppDelegate");
[pool drain];
return retVal;
}
Ex :
Have anyone noticed this ? It was working perfectly on the same project with previous XCode. Is there any solution ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试在断点面板上设置异常断点:
Try setting Exception Breakpoint on Breakpoint panel:
请注意,您可以通过拖动视图底部的滑块来更改堆栈框架视图中显示的项目数。
Notice that you can change the number of items displayed in the stack frames view by dragging the slider at the bottom of the view.