1
我在我的iOS應用中使用Bugsense,但是當我遇到SIGABRT或類似崩潰時,我的Xcode輸出控制檯只顯示Bugsense數據,不會顯示錯誤,所以每次我調試一些我必須禁用Bugsense才能看到它。這裏是我的輸出控制檯的一個例子:Bugsense在XCode中隱藏控制檯輸出中的異常
隨着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框架的行,但我認爲有一種方法可以做到這一點, – Chompas
你可以這樣做:'#ifndef DEBUG ... init SDK ...#endif' ,如果你已經爲你的調試版本配置定義了'DEBUG'。 – Kerni