I am new to xcode and I just have a quick question.
In Visual Studio and Eclipse, I can add custom variables to a windows
and watch its values during a debug session. I am looking for the
same feature in Xcode 4, but I cannot find it. If it is possible in
Xcode, could you please provide instruction so that I can do what I
wish to do. If this is not possible, please let me know.
I am only able to find the window for variables that are “local”, or
“auto”, or “all”.
Thanks in advance.
Right click in that same window (that has the toggles for Local, Auto, All) and click Add Expression. Type in the full expression and click Done. The new watch expression should show when debugging in the window in the lower left with an E next to it.