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.

.. figure:: /debugging/resources/ccs_breakpoint_ex.png
    :align: center

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

.. figure:: /debugging/resources/ccs_theia_breakpoint_ex.png
    :align: center

    CCS Theia Breakpoint on line 73.

For an overview of the active and inactive breakpoints, click on ``View``
|rarr| ``Breakpoints``.

.. figure:: /debugging/resources/ccs_breakpoint_list.png
    :align: center

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

.. figure:: /debugging/resources/ccs_theia_breakpoint_list.png
    :align: center

    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.
