I randomly get this error, and I can’t figure out a way to fix it: the variables pane (top right) is blank, and the gdb “po” command can’t print any variables.

The “po” command doesn’t even know about “self”:

The problem appears specifically for all methods in the MGMinimap class. Nowhere else. I can debug from A and see self and the others, and then as soon as A steps into MGMinimap, the variables pane goes blank like the above image, and gdb doesn’t work at all.
The temporary solution to this problem is to create a new class in XCode called e.g. MGMinimapNew, copy-paste everything from the real class’s .h and .m into the new class, renaming the old class files to e.g. MGMinimapOld.m|h, then renaming the new class to MGMinimap.m|h. Doing this, things start working again. Still looking for a real answer though.
Update in answer to Rob Napier:
- Run>Sync with Debugger. I always have high hopes for this. Occasionally it even works.
- Unfortunately this wasn’t one of those occasions 🙂
- Select a different stack frame, then select this stack frame again.
- No change
- Switch threads and switch back.
- No change
- Step-over. Often going to the next line will sync things back up.
- No change
Its an Xcode bug/wierdness . Try deleting all your breakpoints and doing a full clean.
If that doesnt work make sure your compiler hasnt slipped away from LLVM.
I had all sorts of heck going down after installing XCode4 and then going back to XCode3