我曾经从模拟器中运行的应用程序中获取异常详细信息,如下所示:
po $eax
自从我升级到 XCode 4.6 后,它就停止工作了;我总是收到这个错误:
error: warning: couldn't get object pointer (substituting NULL):
Couldn't find '_cmd' with appropriate type in scope
Couldn't materialize struct: Couldn't read eax (materialize)
Errored out in Execute, couldn't PrepareToExecuteJITExpression
我见过人们推荐使用这个:
register read eax
但这给了我这个错误:
eax = error: unavailable
如何在 XCode 4.6 中获取异常详细信息?