In This Book

The Data Watchpoints dialog box shows detailed information on each watchpoint and it allows you to manipulate b oth the watchpoints and the display itself.

Each watchpoint displays the variables or memory area it is attached to. The data display highlights when the data being watched is modi￿ed. Complete watchpoints can be hidden by selecting the 495 button next to the watchpoint. Select the button again (which is now 475) to redispla y the watchpoint.

Individual elements in a watchpoint (such as some elements in an array) can be hidden by selecting them and selecting 4Selected ->5Hide. Select 4Watchp oint ->5Show All Hidden Values to redisplay them.

Compound objects (such as arrays or structures) can be collapsed to simplify the display, either by double-clicking the beginning of the compound object, or by selecting it and choosing 4Selected ->5 Collapse . Double-click the collapsed object, or choose 4Selected ->5 Expand , to display the entire object.

To modify the watchpoint, choose 4Watchpoint ->5 Change . The Data Watchpoints dialog box is displayed, allowing you to modify all editable attributes of the watchpoint.

To change the Active /Suspend status of a watchpoint, use the Data Watchpoints dialog box. You can also activate or suspend all watchpoints by selecting the 4Activate All5 or 4Suspend All5 buttons in the Data Watchpoints window, or by choosing the Watch: Suspend ALL or Watch: Activate ALL menu selections.

Use 4Watchpoint ->5 Delete to eliminate a watchpoint.

Using Command Buttons

The following buttons are located below the source ￿le display area:

4

Watch()

5

 

Set a watchpoint on the contents of the ( ): input box. Check

 

 

 

 

the watchpoint whenever the debugger stops.

4

 

5

Set a watchpoint on the location poin ted to by the pointer

Watch*()

 

 

 

 

in the ( ): input box. Check the watchpoint whenever the

 

 

 

 

debugger stops.

An easy way to enter tokens in the ( ): input box is to use the mouse to highlight expressions in the source displa y. Highlight by dragging with the

3-10 Using Monitors (Breakpoints, Watchpoints, Traces, and Intercepts)