Control Points
Setting Breakpoints
166
Microcontrollers Debugger Manual

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

1. Point at a C statement in the Source window, hold down the left mouse button and
press the P key.
2. A permanent breakpoint mark is displayed in front of the selected statement.
Once a permanent breakpoint has been defined, you can continue program execution. The
application stops before executing the statement. Permanent breakpoints remain active
until they are disabled or deleted.

Counting Breakpoints

Counting breakpoints are activated after the instruction has been executed a certain
number of times. A Counting breakpoint is recognized by the following icon:

Setting Counting Breakpoints

Counting breakpoints can only be set using the Controlpoints Configuration Window
(Breakpoints Tab). There are two ways to set a counting breakpoint:

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

1. Point at a C statement in the Source window, hold down the left mouse button and
press the S key.
2. The Controlpoints Configuration window with the Breakpoints tab is opened.
3. A new breakpoint is inserted in the list of breakpoints defined in the application.
4. Select the breakpoint you want to modify by clicking on the corresponding entry in the
list of defined breakpoints at the top of the tab.
5. In the Counter: group of this tab specify the interval for the breakpoint detection in
the Interval: field.
6. Then close the window by clicking the OK button.

Using the Source Context Menu:

1. Point at a C statement in the Source window and right-click. The Source Context
Menu is displayed.
2. Choose Set BreakPoint from the Context Menu. A breakpoint is defined on the
selected instruction.
3. Point in the Source window and right-click again.
4. Choose Show Breakpoints from the Context Menu. The Controlpoints Configuration
Window (Breakpoints Tab) is displayed.