I have a recursive-descent tree object. I want to be able to set a breakpoint and inspect it in the Xcode debugger. Inspecting the top level works just fine. But after I go down a level or so, the debugger says the values of the ivars are out of scope. Is there any way I can keep this from happening?
EDIT:
In response to a comment --
The ivar is an object of class Expression. The nesting mostly comes from the body ivar, which is typically an NSMutableArray of expression objects. So you might have a structure like this:
-Expression
---body (2 expressions)
-----0 Expression
-------body (1 expression)
----------0 Expression
------------body [empty]
-----1 Expression
-------body [empty]
There is also a head ivar, which is an object of class Token, which in turn has some string ivars, does not nest.
The way I use the debugger -- I set a breakpoint in a method inside the Expression object. I then click on the disclosure triangle for arguments, then for self, then for the body ivar, then for expressions within the body ivar, and so on. But eventually the debugger stops telling me the values of things.