sigabrt没有错误消息 [英] sigabrt with no error message

查看:130
本文介绍了sigabrt没有错误消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个奇怪的问题,我在主循环中得到一个Sigabrt,但没有显示错误信息,我在互联网上看了很多,但没有找到任何有用的东西。所以我的问题是,如何跟踪导致sigabrt没有错误消息的原因?

I have a strange problem, i am getting a Sigabrt in main loop, but no error message is displayed, i've looked quite a lot on this in the internet but didn't manage to find anything useful. So my question would be, how to track what is causing sigabrt with no error message?

提前致谢。

推荐答案

当你的程序崩溃时,你可以进入调试器控制台并输入 bt (回溯),它可以让您了解崩溃时正在执行的代码。顶级项目可能不是您的代码,但如果您继续向下移动,您最终应该会在那里看到您的内容。

When your program crashes, you can go to the debugger console and type bt (backtrace) which will give you an idea of what code was being executed at the time of the crash. The top level items may not be your code, but if you keep moving down you should see something of yours in there eventually.

如果您的代码没有任何调用,那么这些SIGABRT错误通常与您的xib文件有关,在xib中会丢失或重命名或以其他方式更改未在代码中反映的文件。

If there aren't any calls from your code then these SIGABRT errors are often related to your xib files, there will be something missing or renamed or otherwise changed in a xib file that hasn't been reflected in your code.

这篇关于sigabrt没有错误消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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