debug - ios下如何进行错误的分析
ringa_lee
ringa_lee 2017-04-17 11:16:19
[iOS讨论组]

从友盟获得的错误代码如下,非日常开发获取到的,这类bug隐藏很深。

                  Application received signal SIGSEGV
(null)
(
	0   CoreFoundation                      0x33e2c2bb <redacted> + 186
	1   libobjc.A.dylib                     0x34cea97f objc_exception_throw + 30
	2   CoreFoundation                      0x33e2c1c5 <redacted> + 0
	3   shoot                               0x000e4659 shoot + 890457
	4   libsystem_c.dylib                   0x3648ce8b _sigtramp + 34
	5   shoot                               0x0008e7a9 shoot + 538537
	6   UIKit                               0x3b6599c5 <redacted> + 1308
	7   UIKit                               0x3b65949f <redacted> + 274
	8   UIKit                               0x3b5efab3 <redacted> + 158
	9   UIKit                               0x3b6648cf <redacted> + 50
	10  QuartzCore                          0x3ac1abd9 <redacted> + 208
	11  libdispatch.dylib                   0x3641b4b7 <redacted> + 22
	12  libdispatch.dylib                   0x3641cdcb <redacted> + 226
	13  CoreFoundation                      0x33dfff3b <redacted> + 1290
	14  CoreFoundation                      0x33d72ebd CFRunLoopRunSpecific + 356
	15  CoreFoundation                      0x33d72d49 CFRunLoopRunInMode + 104
	16  GraphicsServices                    0x3bb702eb GSEventRunModal + 74
	17  UIKit                               0x3b62e2f9 UIApplicationMain + 1120
	18  shoot                               0x0000db97 shoot + 11159
	19  shoot                               0x0000db50 shoot + 11088
)

遇到如此错误该如何下手?

ringa_lee
ringa_lee

ringa_lee

全部回复(3)
巴扎黑

这错误列表,debug 断点,首先你add exception breakpoint,加入断点调试,可以找到代码发生错误的位置。
然后信号的类型就两种:1,SIGABRT 2,EXC_BAD_ACCESS(SIGSEGV)要么就是过度release 要么就是unrecogized selector。

http://blog.sina.com.cn/s/blog_777694... 给你个参考,如何加断点,这类debug方式网上很多参考资料。

http://blog.csdn.net/theonezh/article... 错误的原理解释。

PHP中文网

http://www.raywenderlich.com/10209/my...
老外写的,还不错的。

巴扎黑

Application received signal SIGSEGV 你好什么时候会出现这种状态?

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习
PHP中文网抖音号
发现有趣的

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号