SIGABRT错误的调试办法
来源:互联网 发布:张家口金控 知乎 编辑:程序博客网 时间:2024/05/22 14:45
SIGABRT错误的调试办法
iOS经常会遇到一个头疼的error就是在main函数上显示“ Thread 1: signal SIGABRT ”这个错误,终于在stackoverflow上找到了调试的办法:
原文链接: http://stackoverflow.com/questions/9782621/i-have-an-error-in-main-m-thread-1-signal-sigabrt-how-can-i-fix-this
重点就是 Set an exception breakpoint.
之前我们遇到的在main函数上的那个崩溃信息,如果想要调试就加入一个 an exception breakpoint ,它会在exception 被 cathc 的时候停下来,这样就可以追踪到造成 exception 的代码了。
加入一个exception breakpoint的方法就是:在navigator的断点页面,点击左下角的加号就能看到 exception breakpoint;
加入的时候可以设置,默认是 all,也可以选择针对 oc 还是 c 的断点。
原文:
When you get SIGABRT on that line of main, it means that your program is raising an exception. The stack trace shows where the exception is being caught, not where it's being raised. Usually this is not helpful. To debug the problem, you can do two things:
1. Click the “Continue Program Execution” button in the debugger control bar, or choose Program > Debug > Continue from the menu bar. This will let the program continue the exception-raising process. It will print a message to the debugger console that will help you understand what's wrong. (You may have to continue execution a couple of times before it actually prints messages.) Read the messages carefully! They usually continue helpful information.
2. Set an exception breakpoint. This will make Xcode stop your program at the point where the exception is being raised, so you can see the code and the stack trace that is causing the problem.
- SIGABRT错误的调试办法
- SIGABRT错误的调试办法
- SIGABRT错误的解决办法
- 关于EXC_BAD_ACCESS和SIGABRT在xcode下的处理办法
- MOSS系统"发生意外错误"的调试办法
- thread1 signal:SIGABRT 错误
- 如何调试SIGABRT和EXC_BAD_ACCESS引起的crash
- 如何调试SIGABRT和EXC_BAD_ACCESS引起的crash
- 如何调试SIGABRT和EXC_BAD_ACCESS引起的crash
- 关于Xcode中"signal SIGABRT"调试崩溃的问题
- SIGABRT的可能原因
- SIGABRT的可能原因
- GDB的调试办法
- iOS 调试 crash breakpoint EXC_BAD_ACCESS SIGABRT
- 关于std::string出现在_M_dispose发生SIGABRT错误的问题
- 解决真机调试iPad Air设备时的错误:architecture not supported的办法
- Thead 1:proogram received signal:"SIGABRT" 错误
- Swift中的 Thread1:signal SIGABRT 错误解决方法
- 【Android开发】关于在res目录下新建文件夹raw
- 链接扫盲
- ffmpeg参数中文详细解释
- [cocos2dx 3.0 + iap]中文文档
- Linux集群管理工具PSSH批量管理服务器
- SIGABRT错误的调试办法
- 《谷歌和亚马逊如何做产品》
- 一种简单粗暴设置delegate的方法
- SpannableString属性详解
- Phonegap项目不要滑动时底部显示空白
- centos6.4安装openfire
- 利用NSCache提升效率
- Mysql 乱码问题
- 下班后又要走路回去了