0

enter image description here

Sometimes it show up sometimes it doesn't

I wonder why.

user4951
  • 32,206
  • 53
  • 172
  • 282

1 Answers1

2

LLDB appears to be not as good as GDB at showing the correct state of variables - e.g. sometimes, often near the start of methods, LLDB fails to figure out the type of self and you cannot see the instance variables; whereas GDB with the same code is fine.

There are sometimes other reasons; to do with accessing memory, locks, etc.; that a debugger cannot show you variables.

Whether your particular case is LLDB failing or one of those cases when GDB also would fail I cannot say, but if this is hitting you a lot in a particular project switching to GDB might be worth it for the project.

CRD
  • 52,522
  • 5
  • 70
  • 86