Breakpoints in CCS

Note

CCS reserves one hardware breakpoint for instruction stepping.

To toggle a breakpoint, do any of the following.

  • Double-click the area to the left of the line number.

  • Press Ctrl + Shift + B.

  • Right-click on the line.

A breakpoint set on line 207 in CCS Eclipse, and line 73 on CCS Theia looks like the following.

../_images/ccs_breakpoint_ex.png

Breakpoint on line 207. Debugger halted at start of main().

../_images/ccs_theia_breakpoint_ex.png

CCS Theia Breakpoint on line 73.

For an overview of the active and inactive breakpoints, click on ViewBreakpoints.

../_images/ccs_breakpoint_list.png

List of breakpoints. Right-click to edit options, or de-select to deactivate.

../_images/ccs_theia_breakpoint_list.png

Once you enter debug window on CCS Theia, the breakpoints are automatically listed.

To set a conditional break, do as follows.

  1. Right-click the breakpoint in the overview.

  2. Choose Properties.

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.