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

23 visualizaciones (últimos 30 días)
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

Respuestas (1)

Adam
Adam el 27 de Nov. de 2024 a las 22:52
Editada: Adam el 27 de Nov. de 2024 a las 22:52
Hello Marcus!
You seem to be looking for 'dbstop'.
There are multiple ways to achieve what you described.
Adam.

Categorías

Más información sobre Simulink Functions en Help Center y File Exchange.

Productos


Versión

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by