Keil Logo
This feature works with...
ARM C166 C251 C51 Eval

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.

Insert Breakpoint Button The Insert/Remove Breakpoint button toggles (sets or clears) an execution breakpoint on the current line.

Enable Breakpoint Button The Enable/Disable Breakpoint button enables or disables an existing breakpoint on the current line. The breakpoint is not removed.

Disable All Breakpoints Button The Disable All Breakpoints button disables all breakpoints in the program. The breakpoints are not removed.

Kill All Breakpoints Button The Kill All Breakpoints button removes all breakpoints in the program.

Breakpoint Attributes The status of each line of code is marked in the Attributes column of the editor window.

Enabled Breakpoint Red blocks mark enabled breakpoints.

Disabled Breakpoint 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.

Breakpoint Dialog

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

  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.