Debugging using external editor

9 views (last 30 days)
Anirudh Roy
Anirudh Roy on 12 Jul 2020
Commented: Vladimir Sovkov on 12 Jul 2020
How do i set breakpoints for MATLAB function in VS Code, for the time being i have to set breakpoints in MATLAB's editor. I want to be able to set breakpoints in VS code and debug in MATLAB.

Answers (1)

Vladimir Sovkov
Vladimir Sovkov on 12 Jul 2020
  2 Comments
Vladimir Sovkov
Vladimir Sovkov on 12 Jul 2020
Yes, this works if your purpose is to call a C program from Matlab.
If, alternatively, you want to turn your Matlab program to C, use the Matlab Coder:
and debug the resulting C codes as regular C codes,
while the initial m-files can be debugged in Matlab the usual way without VS.

Sign in to comment.

Products


Release

R2019b

Community Treasure Hunt

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

Start Hunting!