.. |img_icon_debug_iar| image:: /debugging/resources/icon_debug_iar.png

Connecting to the XDS Debugger
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

If only one debugger is attached, the IDE uses it automatically when you click
the |img_icon_debug_ccs| button in CCS or |img_icon_debug_iar| in IAR.


If **multiple debuggers** are connected, you must choose the individual
debugger to use. The following steps detail how to select a debugger in CCS
and IAR.


Configuring Debugger in IAR
---------------------------

If only one debugger is attached, IAR uses it automatically when you click the
|img_icon_debug_iar| button.


If more than one debug probe is connected, use the following steps to have IAR
always prompt to select the connection.

1. Open the project options (\ ``Project`` |rarr| ``Options``)

2. Go to the Debugger entry.

3. Go to Extra options.

4. Add the following command line option: ``--drv_communication=USB:#select``
