Breakpoints
Breakpoints are trigger points in your program that halt execution or execute a debugger function. Breakpoints may be triggered by reading an instruction from program memory (an execution breakpoint), reading or writing a memory location (a memory access breakpoint), or by calculating a true value for a conditional expression (a conditional breakpoint).
The µVision IDE allows you to set breakpoints while writing your source code and while debugging your program. Breakpoints you set while editing are activated in your debug session. You may right-click or use the buttons on the toolbar to set breakpoints on source lines.
The Insert/Remove Breakpoint button toggles (sets or clears) an execution breakpoint on the current line.
The Enable/Disable Breakpoint button enables or disables an existing breakpoint on the current line. The breakpoint is not removed.
The Disable All Breakpoints button disables all breakpoints in the program. The breakpoints are not removed.
The Kill All Breakpoints button removes all breakpoints in the program.
The status of each line of code is marked in the Attributes column of the editor window.
Red blocks mark enabled breakpoints.
White blocks mark disabled breakpoints.
The µVision debugger provides several ways for you to create and manage breakpoints in your program.
- You may double-click a line of code to toggle an execution breakpoint for that line. You may also use buttons on the toolbar to toggle an execution breakpoint.
- You may enter all types of breakpoints using the command line in the Output Window.
- You may open then Breakpoints dialog where you may edit and redefine all types of breakpoints.
Advanced breakpoint features are available from the Breakpoints dialog.

By default, breakpoints you create are saved and restored in subsequent debugging sessions.