XCode 4.2:当应用程序崩溃时,线程很少显示调用堆栈

发布于 2025-01-05 06:43:32 字数 434 浏览 2 评论 0原文

由于我安装了最后一个 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 :
Empty call stack !

Have anyone noticed this ? It was working perfectly on the same project with previous XCode. Is there any solution ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

孤檠 2025-01-12 06:43:32

尝试在断点面板上设置异常断点

在此处输入图像描述

在此处输入图像描述

Try setting Exception Breakpoint on Breakpoint panel:

enter image description here

enter image description here

小巷里的女流氓 2025-01-12 06:43:32

请注意,您可以通过拖动视图底部的滑块来更改堆栈框架视图中显示的项目数。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文