Control Points
Setting Breakpoints
168
Microcontrollers Debugger Manual
Using the Source Window Context Menu:
1. Point at a C statement in the Source Component window and right-click. The Source
Context Menu is displayed.
2. Select Set BreakPoint from the Context Menu. A breakpoint is defined on the
selected instruction.
3. Point in the Source Component window and right-click. The Source Context Menu is
displayed.
4. Select Show Breakpoints from the Context Menu. The Controlpoints Configuration
Window (Breakpoints Tab) is opened and a new breakpoint is inserted in the list of
breakpoints defined in the application.
5. Select the breakpoint you want to modify by clicking on the corresponding entry in the
list of defined breakpoints.
6. Specify the condition for breakpoint activation in the Condition: group Condition box.
The condition must be specified using the ANSI C syntax (Example counter == 7).
You can use register values in the breakpoint condition field with the following syntax:
$RegisterName (Example $RX == 0x10)
7. Close the window by clicking OK.
If you continue program execution, the condition is evaluated each time the instruction
containing the conditional breakpoint is reached. When the condition is TRUE, the
application stops.

Deleting Breakpoints

The debugger provides three ways to delete a breakpoint:

Using Delete Breakpoint from Source Context Menu

1. In the Source component window, point at a C statement where a breakpoint has
previously been defined and right-click. The Source Context Menu is displayed.
2. Choose Delete Breakpoint from the context menu. The breakpoint is deleted.

Holding down the left mouse button and pressing the D key:

1. Point at a C statement in the Source Component window where a breakpoint has
previously been defined, hold down the left mouse button and press the D key.
2. The breakpoint is deleted.