Connecting Debug to the MATLAB Process - 2024.2 English - UG1483

Vitis Model Composer User Guide (UG1483)

Document ID
UG1483
Release Date
2025-02-03
Version
2024.2 English
With the breakpoint established, you can attach GDB to the MATLABĀ® process by using the GDB attach command, and specifying the process ID (PID) returned by the xmcImportFunctionSettings command when you set up the debug build mode, as previously discussed. Use the following command:
(gdb) attach <PID>
Important: After it is attached to GDB, the MATLAB process is suspended. You must use the continue command to have the process resume running after the gdb prompt is returned:
(gdb) continue

At this point you are ready to start the SimulinkĀ® simulation, and begin debugging your design.