How can I use Visual Studio Code for debugging MATLAB MEX-files or Simulink S-Functions compiled with MingW64 on Windows or GCC/G++ on Linux?

Can I use Visual Studio Code to debug my MinGW64 MEX-files? And can I use it on Linux to debug my GCC MEX-files?

 Accepted Answer

Yes, you can use Visual Studio Code for debugging MinGW64 and GCC MEX-files, the following blog post on our website goes into further detail on this:

2 Comments

We are aware of an issue when debugging with newer releases (for example, VS Code 1.92.2 and R2024a). VS Code does not halt at the set breakpoints, and the breakpoints are not confirmed to be set by VS Code and show "Attempting to bind the breakpoint..."
This appears to be an issue on VS Code's side and has been reported already:

Sign in to comment.

More Answers (0)

Products

Release

R2017a

Tags

No tags entered yet.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!