Debugger lldb说我的对象是否为零? [英] Debugger lldb says my object is nil when is not ?
问题描述
然而(有时)调试器没有给我正确的信息的印象?可以这样吗?
例如,调试器说 _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屋!