Control Points
Setting Watchpoints
174
Microcontrollers Debugger Manual

Setting Watchpoints

Watchpoints may be set in a Data or Memory window.
NOTE Due to hardware restrictions, the watchpoint function might not be
implemented on hardware connections.

Setting a Read Watchpoint

A green vertical bar is displayed in front of a variable associated with a read access
watchpoint.
The debugger provides two ways to define a read access watchpoint:
Using the Data Context Menu:
1. Point at a variable in the Data window and right-click. The Data Context Menu is
displayed.
2. Choose Set Watchpoint from the Context Menu. A Read/Write Watchpoint is
defined.
3. Point in the Data window and right-click. The Data Context Menu is displayed.
4. Choose Show WatchPoints from the Context Menu. The Controlpoints Configuration
window Watchpoints tab is displayed.
5. Select the watchpoint you want to define as read access from the list.
6. Select the Read type in the list menu.
7. A read access watchpoint is defined for the selected variable.

Using the Left Mouse Button and Pressing the R Key:

1. Point at a variable in the Data window, hold down the left mouse button and press the
R key.
2. A read access watchpoint is defined for the selected variable.
Once a read access watchpoint has been defined, you can continue program execution.
The application stops after detecting the next read access on the variable. Read access
watchpoints remain active until they are disabled or deleted.