Managing variables in the Variables view

The Variables view displays the variables that the currently selected stack frame defines (in the Debug view). Simple variables (name and value) are displayed on a single line. Complex variables can be expanded to display their members. You use the Variables view to watch variables by adding them to the Expressions view and to modify the value of variables during the debugging session.

The Variables view provides the following actions, which are available from the Variables view toolbar and pop-up menu:

Command

Description

Show type names

Displays the type names of variables.

Show logical structure

This command is not supported in Flex Builder.

Change value

Change the value of a selected variable.

Watch

Adds the selected variables to the Expressions view so that they can be monitored.

To watch a variable:

  1. Select the variables or variable members to watch.
  2. Right-click (Control-click on Macintosh) to display the pop-up menu and select Watch.
  3. The variables are added to the Expressions view.

To change the value of a variable:

  1. Select the variable to modify.
  2. Right-click (Control-click on Macintosh) to display the pop-up menu and select Change Value.

    The Set Value dialog box appears.

  3. Enter the new value and click OK.

    The variable contains the new value.

Modified variables are displayed in red.

To find variables:

Related topics


Flex 2.01

Take a survey