Breakpoints List
Description
The Breakpoints List provides information about all breakpoints configured in your model, including breakpoints in Stateflow® charts and source code for MATLAB Function blocks. The Breakpoints List displays breakpoints configured throughout the model hierarchy.
Using the Breakpoints List, you can:
View all breakpoints in the model along with breakpoint information, such as the breakpoint source.
Navigate to the location of each breakpoint in the model hierarchy.
Enable and disable individual breakpoints or all breakpoints.
Delete breakpoints.
Specify when the simulation pauses after encountering the condition for a breakpoint.
By default, the simulation pauses within a time step as soon as the condition for a breakpoint is met. When you pause within time steps, you can step through the simulation one block at a time. Pausing within a time step gives you more granular control over how to progress the simulation and facilitates debugging iterative subsystems.
Breakpoints are not saved as part of the model.
Open the Breakpoints List
Simulink® Toolstrip: On the Debug tab, click Breakpoints List.
Simulink Editor: Click the breakpoint icon on a signal that has a breakpoint.
When you open the Breakpoints List by clicking a breakpoint, the row for the breakpoint you clicked is highlighted purple in the table.
Examples
Related Examples
Parameters
Tips
For debugging in simulation, use normal mode.
To view signal values in the model while debugging, use port value labels. To add a port value label for a signal, select the signal. Then, on the Debug tab, in the Tools section, next to Output Values, click Show Output Value of selected signal . For more information, see View Signal Values Using Port Value Labels.
To save time when iteratively debugging, consider enabling fast restart. With fast restart enabled, the model compiles only the first time you simulate. Subsequent simulations take less time by skipping the compilation phase. While fast restart is enabled, you can modify the model only in ways that do not require compiling the model. For more information, see How Fast Restart Improves Iterative Simulations.
While paused within a time step, you can use some of the programmatic debugging functions, including the
disp
function, to get more information about the system behavior.By default, the Breakpoints List opens as a pane at the bottom of the Simulink Editor. You can reposition the Breakpoints List to suit your workflow.
To dock the Breakpoints List to a different part of the Simulink Editor, drag the pane to another part of the window.
To minimize the Breakpoints List, click the arrow in the upper right and select Minimize.
To use the Breakpoints List as a separate window, drag the pane out of the Simulink Editor or click the arrow in the upper right and select Undock.
The stepping and breakpoint options in the Simulink Editor do not have a programmatic equivalent available in the software. The Simulink debugging programmatic interface includes options for setting breakpoints and stepping through simulations. However, the behavior of these functions is not identical to the behavior of the stepping options in the Simulink Editor. For more information about programmatic debugging, see Simulink Debugging Programmatic Interface.
Version History
Introduced in R2022a