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

7 vues (au cours des 30 derniers jours)
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

Réponses (1)

Adam
Adam le 27 Nov 2024
Modifié(e) : Adam le 27 Nov 2024
Hello Marcus!
You seem to be looking for 'dbstop'.
There are multiple ways to achieve what you described.
Adam.

Catégories

En savoir plus sur Modeling dans Help Center et File Exchange

Produits


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by