Breakpoints in IAR¶
Note
IAR reserves one comparator for instruction stepping.
To toggle a breakpoint, do any of the following.
Single-click the area to the left of the line number.
Go to the line and press
F9to toggle breakpointRight-click on the line and select Toggle Breakpoint (Code).
A breakpoint looks like this:
Breakpoint on PIN_init(). Debugger halted at start of main().¶
For an overview of the active and inactive breakpoints, click
View → Breakpoints.
List of breakpoints. Right-click to edit options, or de-select to deactivate.¶
To set a conditional break, do as follows.
Right-click the breakpoint in the overview.
Choose Edit….
When debugging, Skip Count and Condition can help skip a number of breaks or only break if a variable is a certain value.
Note
Conditional breaks require a debugger response and may halt the processor long enough to break an active RF connection, or otherwise disrupt timing on the debug target.