Variables in CCS
----------------

You can view Global Variables by doing either of the following.

* Select ``View`` |rarr| ``Expressions``.

* Select a variable name in code.

* Right-click and select Add Watch Expression.

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

    Variable watch window. Note that you can cast values, get address and
    sizeof, etc.

* Select ``View`` |rarr| ``Variables`` to ``auto-variables`` that are present
  at the current location when stepping through code.

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

    Local variables. This screenshot is taken during execution of an 
    application function.

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

    CCS Theia Local variables. Once debug mode is entered you can view
    the local variables automatically. 
