How do I get exception details in XCode 4.6?
来源:互联网 发布:淘宝v2怎么贷款 编辑:程序博客网 时间:2024/06/11 02:06
I used to get exception details from apps running in the simulator like so:
po $eax
Ever since I upgraded to XCode 4.6 it's stopped working; I always get this error:
error: warning: couldn't get object pointer (substituting NULL):Couldn't find '_cmd' with appropriate type in scopeCouldn't materialize struct: Couldn't read eax (materialize)Errored out in Execute, couldn't PrepareToExecuteJITExpression
I've seen people recommend using this:
register read eax
But that gives me this error:
eax = error: unavailable
How do I get exception details in XCode 4.6?
2 Answers
If you break on objc_exception_throw
the stack frame selected is the last frame in your code, before calling any libraries that might have thrown the exception. At that point lldb doesn't let you access some of the registers (see this answer for a possible explanation.
To get the exception details you have to select the objc_exception_throw
stack frame:
Now po $eax
(po $rax
if you are running on OS X 64 bit, po $r0
on iPhone/iPad) should give you the exception details.
Go to :
Product -> Scheme -> Edit Scheme -> Run on the left -> diagnostics tab
and then enable zombies
转载:http://stackoverflow.com/questions/15155495/how-do-i-get-exception-details-in-xcode-4-6
- How do I get exception details in XCode 4.6?
- How do I get start in QA/Test
- How do I get the “Command Buffer” in Solaris 10?
- Why do I get EOF exception while reading a datainputstream in java?
- How Do I get Started with Oracle?
- How do I get into graphics?
- How do I get a preference value?
- How do I get started with CUDA?
- How do I define preprocessor macros in the xcode project settings
- How do I get the name of an object's type in JavaScript
- How do I debug JavaScript in Safari?
- How do I use Cygwin in Geophysics ?
- How do I install fonts in Fedora
- How do I write things in Swift?
- How do I get a MAC address via command line?
- How do I get Chinese input to work?
- How do I get this result via SNMP?
- how do I get the instance of sun.misc.Unsafe
- JDK1.7安装配置教程
- 颜色空间及其之间的转换
- Android中的硬件加速
- loadrunner编程基础
- 快速理解VirtualBox的四种网络连接方式
- How do I get exception details in XCode 4.6?
- Git rebase 的應用經驗 .
- 史上最牛国足 1936年中国足球被欧洲赞叹
- MSF搜集邮箱
- 电驴提示“该内容尚未提供权利证明,无法提供下载”之解决办法详解
- String字符串判断真假
- Object-C中的#和##操作符(The # and ##Operator)
- 一个整形数,如何把某位设置为 0 或者 1
- 理解和使用WPF 验证机制