In This Book

the value of a variable is checked after every assembly instruction executes.

 

Execution of the target program stops when the value changes.

 

For performance purposes, you should set the granularity as coarsely as

 

possible. For example, if you only need to know the value of the monitored

3

expression each time you enter a procedure, there is no sense in monitoring

 

it after every assembly instruction. Typically you would locate a problem by

 

using a granularity of procedure entry/exit to narrow the source of the problem

 

down to one procedure. Once the problem is localized, use a ￿ner granularity

 

(such as instruction or statement) but limit it to a particular procedure by

 

entering the procedure name in the When In input box in the Data Watchpoint

 

Set/Change dialog box.

 

Viewing and Modifying Watchpoints

 

The following sections describe some of the methods for setting watchpoints.

 

When you set a watchpoint by any method, the Data Watchpoints dialog box

 

is displayed (you can also invoke it by selecting Watch:Values Display ). See

 

Figure 3-3.

 

Figure 3-3. The Data Watchpoints Dialog Box

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