The QuickWatch Dialog Box
You use the QuickWatch dialog box to, as its name implies, quickly evaluate a variable or expression. Figure 12-20 shows a QuickWatch dialog box.
Clou-
Hefc
Clou-
Hefc
|
lyM |
J | ||
|
Irtrarr | |||
|
J |
Figure 12-20: The QuickWatch dialog box
The QuickWatch dialog box is an alternative to the Watch window. The QuickWatch dialog box provides a quicker, simpler way of evaluating or editing a single variable or expression than does the Watch window. However, QuickWatch is a modal dialog box, so unlike the Watch window, you cannot leave the QuickWatch dialog box open to watch a variable or expression while you step through your program.
You can only open the QuickWatch dialog box if the debugger is in break mode. In a source window, right-click a variable or expression and choose QuickWatch from the context menu. This automatically places the variable into the QuickWatch dialog box. Click Recalculate. The value appears in the Current value box. If the variable is the name of an array or object variable, a tree control appears next to the name in the Current value box. Click the plus (+) or minus (-) in the Name column to expand or collapse the variable.
Note You also can open the QuickWatch dialog box by the menu command Debug | QuickWatch.
Tip Previously chosen variables and expressions need not be retyped.
They can be chosen from the Expression drop-down list box.
You use the Value column of the QuickWatch dialog box to edit a value. Double-click the Value column of the Current value box to select the value, use the mouse and keyboard to edit the value, and press ENTER.
Post a comment