SDAccel GUI Flow
Running SDAccel™ in the GUI flow provides easy access to the debug capabilities.
In the project view, check the Kernel debug box for the hardware emulation or software emulation target, as shown in the following figure.
Figure: Software Project Settings Options
This completes the setup, and you can now run the default debug configuration.
When the kernel is spawned off, a breakpoint is hit at the beginning of the kernel in a separate GDB console.
Figure: GDB Console
It is now possible to add breakpoints, inspect variables, and debug the kernel as normal.
Note: In hardware emulation, as the C/C++ code is translated for efficient
implementation, breakpoints cannot be placed on all statements (mostly available
untouched loops and functions) and similarly only preserved variables can be
accessed.
See the GDB Extensions section for additional debug capabilities designed to allow easy access to common OpenCL® structures.