Debugging using external editor

6 visualizaciones (últimos 30 días)
Anirudh Roy
Anirudh Roy el 12 de Jul. de 2020
Comentada: Vladimir Sovkov el 12 de Jul. de 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.

Respuestas (1)

Vladimir Sovkov
Vladimir Sovkov el 12 de Jul. de 2020
  2 comentarios
Anirudh Roy
Anirudh Roy el 12 de Jul. de 2020
Thanks for the link, but i supose this is specific to '.C' files. Does this work with '.M' files too?
Vladimir Sovkov
Vladimir Sovkov el 12 de Jul. de 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.

Iniciar sesión para comentar.

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by