Main Content
Test and Debug Simulations
Manage and diagnose simulation errors, set breakpoints, step through
simulation time steps and block execution
You can debug and analyze models in Simulink® by stepping through a simulation and viewing signal values throughout the model. You can set breakpoints to pause the simulation at a time of interest and then step the model execution one major time step at a time or one block at a time.
The software provides stepping and debugging utilities in the Simulink Editor and a programmatic interface for debugging in the MATLAB® Command Window.
The Diagnostic Viewer displays diagnostic messages issued by the software as you work in the Simulink Editor, grouped as informational messages, warning messages, and error messages.
Categories
- Debug Simulations in the Simulink Editor
Debug and analyze simulations in the model canvas, set breakpoints, step through time steps and block execution
- Debug Simulations Programmatically
Debug and analyze simulations in the MATLAB Command Window, set breakpoints, step through time steps and block methods
- Diagnostics
View diagnostics for models, configure and customize diagnostic checks, understand diagnostic viewer layout