The debugger allows debugging an
application that is already running on the target device. For example, a standalone
application component or Linux kernel booting from a flash device can be debugged using
the debugger. The following are the steps for attaching to an application component
running on the target.
Note: The
debugger does not modify the state of the processors on the target device, but
merely connects to them. You can halt the processors and debug from the current
PC.
- Create a target connection to the host to where the hardware
board is connected. If the hardware board is connected to the same machine where
the Vitis Unified IDE is running, this step
can be skipped. In the subsequent steps that refer to remote board and remote
connection, the default Local connection can
be used.
- See Creating a New Target Connection to create the target connection.
- See Launch Configurations to launch
a debug configuration. Set the Target Setup
Mode as Attach to running
target and select the target connection that was created.
- Follow Starting Debug to start debug the application.