Inspecting A Variable At Runtime
Place a breakpoint in the method you want to investigate.
Run the project.
When execution stops, place the pointer on a variable that comes before the breakpoint.
In the datatip that appears, inspect the current value of the variable.
Inspect the value of a variable in a datatip to uncover a problem in the source code.
You can also view the values of variables in the variables pane of the debug area.
The video illustrates inspecting the value of an integer variable in the method
© 2012 Apple Inc. All Rights Reserved. (Last updated: 2012-01-09)