Control Points
Setting Watchpoints
175
Microcontrollers Debugger Manual

Setting a Write Watchpoint

A red vertical bar is displayed in front of a variable associated with a write access
watchpoint.
The Debugger provides two ways to define a write 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 Component Window and right-click. The Source 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 write access from the list.
6. Select the Write type in the list menu.
7. A write access watchpoint is defined for the selected variable.

Using the Left Mouse Button and Pressing the W Key:

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

Defining a Read/Write Watchpoint

A yellow vertical bar is displayed in front of a variable associated with a read/write access
watchpoint.
The debugger provides two ways to define a read/write 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.