Viewing Local Variables

Use the Variables window to view the local variables of a selected stack frame.

To view local variables:

  1. Choose Debug | Debug Windows | Variables from the menu to display the Variables window.
  2. Choose a frame from the Stack Frame drop-down list.
    The local variables and their current values for the selected stack frame display.
  3. Expand the node of composite variables to view the elements.
    You can modify the current value of a local variable to test possible changes at runtime.

Modifying a Variable Value