0

Can Xcode calculate the value of an expression while debugging?

I mean like MS visual studio, there is a "watch" window, where the debugger can input expressions composed with the local variables, and vs will calculate the value. can similar thing be done also in xcode? how?

boreas
  • 1,041
  • 1
  • 15
  • 30

1 Answers1

1

Use the Run/Show/Expressions window. You can also use the print (or p) command in the console window (the one with the (gdb) prompt).

Marcelo Cantos
  • 181,030
  • 38
  • 327
  • 365
  • Thank you! but could you tell me how can I see the value of the expression, not something like {(unichar *)Xcode_CFStringSummary($VAR, $ID)}:s – boreas Jul 23 '10 at 11:19