Debugger lldb说我的对象是否为零? [英] Debugger lldb says my object is nil when is not ?

查看:157
本文介绍了Debugger lldb说我的对象是否为零?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我升级了Xcode 4.3中的项目设置,现在我使用最新的llvm调试器: lldb



然而(有时)调试器没有给我正确的信息的印象?可以这样吗?



例如,调试器说 _documentsItem nil (在控制台和鼠标悬停在ivar上)。但是我知道这是,这就是为什么我可以看到它(一个UIBarButtonItem),更重要的是这个应用程序停在所示的断点上)

  if(_documentsItem){... 

事实上,我的大部分属性都返回nil(
有没有办法我确保调试器做得很好?



解决方案

Xcode 4.3中的问题,然后按选项,然后单击运行,并将其更改为稳定的gdb。


Recently I upgraded my project settings in Xcode 4.3 and now I use the latest llvm debugger: lldb

However (sometimes) I have the impression the debugger is not giving me the correct info? Could this be possible?

For example, The debugger says _documentsItem is nil (both in in the console and when mouse-over-ing the ivar). But I know it's NOT, that is why I can see it (an UIBarButtonItem) and more important that is why the app stopped at the shown breakpoint)

if (_documentsItem) { ...

In fact most of my properties return nil too :( Is there a way I make sure the debugger is doing fine?

解决方案

I've met similar issues in Xcode 4.3. And press "Option" while click "run" and changed it back to stable gdb.

这篇关于Debugger lldb说我的对象是否为零?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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