16. Debugging Your Application : How Debugging an Application Works : How You Can Examine Values of Expressions : Write Expanded Values to the Trace Window
 
Share this page                  
Write Expanded Values to the Trace Window
Rather than expanding an object in the Debugger window, you can write the expanded values to the Trace window.
To write expanded values to the Trace window
1. Select an object in the script display area or the data display area.
2. Click Tools, Values, Expand in Trace Window, or right-click the highlighted object and click Expand in Trace Window from the pop-up menu.
The Number of Levels dialog appears, which lets you select how many indent levels to display. If you select the Prompt to Continue Output option, a slider field appears, letting you select the number of rows to be examined before you are prompted to continue or cancel.
3. Click OK.
The Debugger updates the values of the examined expressions in the data display area when the executing application updates them or when you assign new values in the Debugger window.
If the execution of a statement makes an expression invalid, the display indicates that this is the case. For example, suppose you have examined the expression "arrayname[7].num." If a statement that clears the array is executed, the expression is no longer valid, as indicated by the display.
After you examine an expression, the resulting value remains in the data display (and is updated as necessary) until you explicitly delete it. To delete lines in the data display, click Edit, Delete or Edit, Delete All.