Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
814 views
in Technique[技术] by (71.8m points)

objective c - Debugger lldb says my object is nil when is not ?

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?

po object

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

56.7k users

...