Watchpoints in CCS
------------------

.. warning::
    
    Watchpoint are not available on |DEVICE_LOW_PLUS| and |DEVICE_LOW|

1. Right-click on a global variable.

2. Select ``Breakpoint`` |rarr| ``Hardware Watchpoint``.

3. Go to the list of breakpoints (``View`` |rarr| ``Breakpoints``).

4. Right-click and edit the Breakpoint Properties to configure the watchpoint.

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

    Adding a watchpoint on a variable.

This example configuration ensures that if 0x42 is written to the memory
location for Characteristic 1 in the Bluetooth Low Energy basic\_ble
example project the device halts execution.

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

    Configuring a hardware watchpoint to break on 8-bit write with value 0x42.
