Variables view

Variables view displays information about the variables in a selected stack frame. When an execution stops, the changed values are highlighted in red (by default). Like the other debug-related views, Variables view does not keep up with the execution of a running program; it updates only when execution stops.

Displaying a variable type

To set whether or not a variable type is displayed

Customizing Variables view

You can customize the look of Variables view and set the color of changed variables (red by default).

To access Variables view preferences

  1. On the Window menu, click Preferences.
  2. In the left pane, expand Debug and select Variables View.
  3. Make required changes and click OK.

Changing variable values

During a debug, you can change the value of a variable to test how your program handles the setting or to speed through a loop.

To change a variable value while debugging

  1. In Variables view, right-click on a variable and click Change Variable Value.
  2. Enter the new value in the available field.
Copyright IBM Corporation
 2000, 2002. All Rights Reserved.