Inspecting A Variable At Runtime

Inspect the value of a variable in a datatip to uncover a problem in the source code.

To inspect a variable at runtime
  1. Place a breakpoint in the method you want to investigate.

  2. Run the project.

  3. When execution stops, place the pointer on a variable that comes before the breakpoint.

  4. In the datatip that appears, inspect the current value of the variable.

You can also view the values of variables in the variables pane of the debug area.