RealView
DebuggerIf you want to set a simple software breakpoint on an instruction in your application, without any conditions attached to it, double-click in the margin of the source line (Src tab) or address (Dsm tab) in the File Editor pane of the Code window.
The symbol
to the left of the source line indicates
that there is a breakpoint.
Breakpoints are set on executable instructions.
If you click on a source line that is not executable, RealView Debugger
sets a breakpoint on the next executable instruction and identifies the
non-executable lines between
with
.
Execution stops at this point in the code and waits for you to take action. If you execute the program again, it continues until the next breakpoint is reached.
You can disable the breakpoint by clicking on it and selecting Disable Break from the context menu.
A disabled breakpoint is indicated by the symbol
.
To set a conditional breakpoint:
Select Breakpoints
Conditional from the Code window Debug
menu.
Select one of the following options from the Conditional submenu:
Simple Break if X when Y is True…
Conditional breakpoints are indicated
by the symbol
.
For RTOS applications see Setting
breakpoints in RTOS applications.