?? (Quick Watch)

Syntax

?? symbol

Parameter

symbol

Displays the given variable, array, or structure in the Quick Watch dialog box.

Description

The Quick Watch (??) command displays the value of any selected expression in the Quick Watch dialog box. You can use Quick Watch to quickly check the value of a variable or structure and expand or contract items in a structure.

Expanding/Contracting Items

The Quick Watch dialog box allows you to:

Expand or contract nested structures and arrays.

View variables, structures, or arrays addressed by pointers.

Add any structure or array to the Watch window.

Expandable items appear with a plus sign (+) in the Quick Watch dialog box. Once expanded, an item appears with a minus sign (-).

Expanding an item has the following effects:

Item Action

Nested structure Expands the structure so that the dialog box displays each member of the nested structure.
Pointer Dereferences the pointer; that is, displays the data that the pointer addresses.
Array Expands the array so that the dialog box displays each element of the array.

Contracting an item reverses the effects of expanding described above.

Note:

You can add any expression in the Quick Watch dialog box to the Watch window by choosing the Add Watch button.

Mouse and Keyboard

After opening the Quick Watch dialog, you can expand or contract an item using the following methods:

Double-click the left mouse button on the item.

Select the item, then choose the Expand/Contract button at the bottom of the dialog box.

Use the arrow keys to select the item, and press ENTER.