Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
Watch Window
◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
The watch window shows the values of selected variables and
expressions. The displayed values are updated automatically as
the variables and expressions change during program execution.
They are also updated if the current radix is changed.
See: ◄Switching Languages (Notes)►
◄Radix (N) Command-Window Command►
To add a variable or expression to the watch window:
■ Select the Add Watch command from the Watch menu
■ Enter CTRL+W
OR
■ Enter the Add Watch Expression (W?) command in the
command window
See: ◄Expressions►
◄Window Menu: Add Watch Command►
◄Add Watch Expression (W?) Command-Window Command►
To change the value of any watch expression, overtype the
expression's value, then move the cursor to a different line. To
restore the original value of the variable, press ESC before you
move the cursor, or choose the Undo command from the Edit menu. All
CodeView editing keys work in the watch window.
See: ◄Edit Menu: Undo Command►
When the watch window has the input focus, you can expand any
displayed structure or array, or dereference any displayed
pointer.
To expand an item in the watch window:
Mouse: Double-click in the structure, array, or pointer
Keyboard: Move the cursor to the structure, array, or pointer;
and press ENTER
Once you have expanded a structure, array, or pointer to its basic
components, repeat the process to "contract" the display and
return it to its original form.
See: ◄Expanding/Contracting: Keyboard►
◄Expanding/Contracting: Mouse►
NOTE: If you are debugging more than one application or DLL in
CVW, and if two or more of these contain global symbols with
the same name, CVW displays the symbols for only the first
application or DLL containing that name.
For example, if you are debugging APP1 and APP2, and both
contain a global variable named hInst, CVW always displays
the value of hInst in APP1, even if CVW stopped at a
breakpoint in APP2.
-♦-