繁体   English   中英

Bugsense在XCode的控制台输出中隐藏异常

[英]Bugsense hiding exceptions in console output in XCode

我在我的iOS应用程序中使用Bugsense但是当我有一个SIGABRT或者一些崩溃时,我的Xcode中的输出控制台只显示Bugsense数据而没有显示错误所以每次我调试时我都要禁用Bugsense来查看它。 这是我的输出控制台的一个例子:

使用Bugsense:

2013-05-29 12:01:45.887 [44604:1303] BugSense --> Posting analytics data...
2013-05-29 12:01:45.949 [44604:c07] GoogleAnalytics 2.0b4 -[GAIDispatcher internalCreateTimer] (GAIDispatcher.m:195) DEBUG: Created timer to fire every 20.0s
2013-05-29 12:01:46.464 [44604:4b03] BugSense --> Server responded with status code: 200

这在我启动应用程序时出现,但在崩溃的那一刻,控制台输出上没有显示任何内容

关闭Bugsense:

*** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array'
*** First throw call stack:
(0x21e5012 0x1dc6e7e 0x21870b4 0x2009d 0x290d8 0x11a5b87 0x11a5c14 0xe0d249 0xe0d4ed 0x18175b3 0x21a4376 0x21a3e06 0x218ba82 0x218af44 0x218ae1b 0x2bdc7e3 0x2bdc668 0xd5dffc 0x254d 0x2475 0x1)
libc++abi.dylib: terminate called throwing an exception

我真的不知道为什么启用bugsense会隐藏异常。

Bugsense在调试器看到之前捕获所有异常。 通常,您应该只为您提供给其他人测试或部署的构建启用此类框架。 对于调试,你不希望隐藏你的bug。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM