Debugging using external editor

5 次查看(过去 30 天)
Anirudh Roy
Anirudh Roy 2020-7-12
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.

回答(1 个)

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

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Software Development Tools 的更多信息

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by