xCode 4中的异常上没有调用堆栈 [英] No call stack on Exception in xCode 4
本文介绍了xCode 4中的异常上没有调用堆栈的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
欢迎所有的想法。
谢谢!
解决方案
在 objc_exception_throw
上设置一个断点,这样会停止程序在
编辑
...或者只是在Xcode中设置异常断点。在gdb中直接使用这些东西。
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!
解决方案
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.
这篇关于xCode 4中的异常上没有调用堆栈的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文