How can I save manually set breakpoints in the code of a matlab function block in a simulink model?

조회 수: 12 (최근 30일)
Hi there,
I use MATLAB/Simulink 2020b and lots of matlab function blocks in a simulink model. For debugging I extensively use breakpoints, which can be set manually in the "Editor" by clicking the small dash/minus on the right next to the line number.
Everytime I close the simulink model I do loose all these set breakpoints, because they are not saved by Simulink. Is there a way to save these breakpoints for the next session? For me, it's some kind of effort to re-set a number of breakpoints in some thousand lines of code across different matlab functions every time I have to close matlab/restart the PC ...
Thank you very much for your time and help!
Marcus

답변 (1개)

Adam
Adam 2024년 11월 27일
편집: Adam 2024년 11월 27일
Hello Marcus!
You seem to be looking for 'dbstop'.
There are multiple ways to achieve what you described.
Adam.

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by