Quick Watch ShiftF

This feature is used to quickly check the value of a variable or expression while in break mode. We just place the insertion point over the variable name and hit Shift-F9 (or choose Quick Watch from the Debug menu). For instance, Figure 4-9 shows the Quick Watch dialog box when the expression x + 2 is selected in the code in Figure 4-10. According to Figure 4-9, at the time that Quick Watch was invoked, the expression x + 2 had the value 8. Note that if we had just placed the insertion point in front of the letter x, then Quick Watch would have reported the value of this variable alone.

0 0

Post a comment