我已经在AppStore中有一个应用程序,我重写了这个方法:
void onUncaughtException(NSException* exception){
[H trackUserWithExceptionDescription:exception.description AndDetails:[exception.callStackSymbols description]];
}
正如您所见,我将所有错误发送到服务器的数据库。
现在,我有一个带有异常描述和stacksymbol的表。
问题是如何确定错误发生的代码行?
这是我的数据库行的示例
例外名称:
*** -[__NSArrayI objectAtIndex:]: index 1 beyond bounds [0 .. 0]
和stacktrace:
(
0 CoreFoundation 0x261bb14f <redacted> + 150
1 libobjc.A.dylib 0x34592c77 objc_exception_throw + 38
2 CoreFoundation 0x260cd217 <redacted> + 178
3 TickerChart 0x000edd01 TickerChart + 105729
4 TickerChart 0x000ed635 TickerChart + 103989
5 TickerChart 0x0011384d TickerChart + 260173
6 TickerChart 0x001135c9 TickerChart + 259529
7 TickerChart 0x000f90d5 TickerChart + 151765
8 Foundation 0x26efa235 __NSFireTimer + 64
9 CoreFoundation 0x2618115f <redacted> + 14
10 CoreFoundation 0x26180ce1 <redacted> + 656
11 CoreFoundation 0x2617ef4b <redacted> + 1418
12 CoreFoundation 0x260ca9a1 CFRunLoopRunSpecific + 476
13 CoreFoundation 0x260ca7b3 CFRunLoopRunInMode + 106
14 GraphicsServices 0x2d85a1a9 GSEventRunModal + 136
15 UIKit 0x29855695 UIApplicationMain + 1440
16 TickerChart 0x000fb8ab TickerChart + 161963
17 libdyld.dylib 0x34b3aaaf <redacted> + 2
)
答案 0 :(得分:0)
进入看似Xcode中左侧疼痛的换行符的选项卡。转到左下角,然后单击加号。然后单击“添加异常断点”。然后在异常下选择语言。单击换行图标
确保其已启用