| Using Flex Builder 2 > Programming Flex Applications > Running and Debugging Applications > Debugging your applications > Using the Expressions view | |||
You use the Expressions view to watch variables you selected in the Variables view and to add and evaluate watch expressions while debugging your applications.
While debugging, you can inspect and modify the value of the variables that you selected to watch. You can also add watch expressions, which are code expressions that are evaluated whenever debugging is suspended. Watch expressions are useful for watching variables that may go out of scope when you step into a different function and are therefore not visible in the view.
The Expressions view provides the following commands, which are available from the Variables view toolbar and pop-up menu:
|
Command |
Description |
|---|---|
|
Select All |
Selects all items in the Expressions view. |
|
Copy Variables |
Copies the selected variable to the clipboard. |
|
Show Type Names |
Shows the object types for items in the Expressions view. |
|
Show Logical Structure |
This command is not supported in Flex Builder. |
|
Remove |
Removes the selected variable or watch expression. |
|
Remove All |
Removes all variables and watch expressions from the Expressions view. |
|
Change Value |
Change the value of a selected variable or watch expression. Changes are valid during the debugging session only. |
|
Add Watch Expression |
Displays the Add Watch Expression dialog box, which you can use to add a new watch expression. |
|
Reevaluate Watch Expression |
Reevaluates the selected watch expression. |
|
Disable |
Disables the selected variable or watch expression. |
|
Enable |
Enables the selected variable or watch expression. |
|
Edit Watch Expression |
Displays the Edit Watch Expression dialog box, which you can use to edit the selected watch expression. |
Flex 2.01