我有一个NSRangeException
不会一直发生的错误(尤其是在调试时)。它随机出现,我无法弄清楚它来自哪里。我有很多数组操作,所以很难以这种方式消除它。
我的问题是我是否可以从调试器输出中获得线索,例如类和行号,例如数字 12109 和 707 是什么?:
2012-03-15 09:25:15.303 appname[12109:707] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayI objectAtIndex:]: index 2 beyond bounds [0 .. 0]'
任何指针表示赞赏。
编辑:日志的剩余部分:
*** First throw call stack:
(0x33ff38bf 0x342431e5 0x33f4b275 0x1702d 0x37662331 0x3761b2b3 0x33f4d435 0x373b79eb 0x373b79a7 0x373b7985 0x373b76f5 0x3744de55 0x374e3e45 0x373aa99b 0x33fc7b4b 0x33fc5d87 0x33fc60e1 0x33f494dd 0x33f493a5 0x307cdfcd 0x373ca743 0x2325 0x22e4)
terminate called throwing an exception