Debugging using external editor

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일

0 개 추천

댓글 수: 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.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Function Creation에 대해 자세히 알아보기

제품

릴리스

R2019b

질문:

2020년 7월 12일

댓글:

2020년 7월 12일

Community Treasure Hunt

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

Start Hunting!

Translated by