Connecting Debug to the MATLAB Process - 2024.1 English

Vitis Model Composer User Guide (UG1483)

Document ID
Release Date
2024.1 English
With the breakpoint established, you can link 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 will be 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.