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?
18 views (last 30 days)
Show older comments
MathWorks Support Team
on 20 Jun 2018
Commented: Stefanie Schwarz
on 6 Sep 2024
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
MathWorks Support Team
on 20 Jun 2018
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
Stefanie Schwarz
on 6 Sep 2024
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:
More Answers (0)
See Also
Categories
Find more on MATLAB Support for MinGW-w64 C/C++ Compiler in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!