Using the GDB Debugger in the Command Line - Using the GDB Debugger in the Command Line - 2025.2 English - XD100

Vitis Tutorials: AI Engine Development (XD100)

Document ID
XD100
Release Date
2026-03-27
Version
2025.2 English

The x86 simulation features that work in the Vitis IDE and also works on the command line. The Vitis IDE provides a GUI-based debug support to control the flow by setting the breakpoints and viewing the intermediate values while executing. You can perform similar debugging for command-line projects using the GDB capabilities. This section discusses different steps to debug the code using GDB.

First, locate the necessary files to compile and run the simulation standalone. Then add GDB capabilities step-by-step.

Before beginning, set environment variables as described in Introduction. Also, make sure you have cloned the Git repository.