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

26 views (last 30 days)
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

Answers (1)

Adam
Adam on 27 Nov 2024 at 22:52
Edited: Adam on 27 Nov 2024 at 22:52
Hello Marcus!
You seem to be looking for 'dbstop'.
There are multiple ways to achieve what you described.
Adam.

Categories

Find more on Simulink Functions in Help Center and File Exchange

Products


Release

R2020b

Community Treasure Hunt

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

Start Hunting!