xCode 4中的异常上没有调用堆栈 [英] No call stack on Exception in xCode 4

查看:167
本文介绍了xCode 4中的异常上没有调用堆栈的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个例外,我无法追溯。我想知道抛出异常的位置。在xCode 4.2中是否有选项?正如你可以看到的,调用堆栈不是很大的帮助。我唯一知道的是,Iam尝试以错误的索引访问NSArray中的一个项目。



欢迎所有的想法。
谢谢!



解决方案

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆