3

In Xcode 3.2 it was possible to check global vars in the Xcode debugger (by defining interesting vars in a special dialog).

However in Xcode 4.2 I can't find a way to inspect global vars.

Any ideas?

Markus
  • 51
  • 7
  • 1
    It seems a duplicate of http://stackoverflow.com/questions/5632477/where-is-the-expression-window-in-xcode-4 – djromero Nov 18 '11 at 18:23

1 Answers1

4

1) Open the debugger drawer thingy

2) Show the Variables view (the left section), or both the Variables view and the Console

3) On the header of the variables view, there is a popup on the left - choose "All variables, registers, statics, globals"

justin
  • 104,054
  • 14
  • 179
  • 226
  • 3
    Thank you Justin, your answer is correct so far, but the "missing link" was in the previous comment by madmw: So step 4) to your answer should be: context-click in the debugger window to select "Add expression..." in the pop-up-menu and enter the name of the global variable in the upcomming window. Anyway thanx for your help. – Markus Nov 19 '11 at 10:42
  • 1
    Step4)Right click in the debugger window shows the pop-up menu. Thanks! – mazend Mar 14 '20 at 07:06