No call stack on Exception in xCode 4

£可爱£侵袭症+ 提交于 2019-12-10 04:53:48

问题


I got an exception I can't back trace. I would like to know where the exception is thrown. Is there an option for that in xCode 4.2? As you can see the call stack is not much of a help. The only thing I know is that Iam trying to access an item in a NSArray at a faulty index.

All ideas are welcomed. Thanks!


回答1:


Set a breakpoint on objc_exception_throw and that will stop the program on that message.

EDIT ... Or just set the Exception Breakpoint in Xcode. Too used to doing this stuff directly in gdb.



来源:https://stackoverflow.com/questions/9546174/no-call-stack-on-exception-in-xcode-4

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!