Using Simulink | ![]() ![]() |
Starting the Debugger
To start the debugger, open the model you want to debug and select Debugger from the Simulink Tools menu. The debugger window appears.
You can also start the debugger from the MATLAB command line, using the sldebug
command or the debug
option of the sim
command to start a model under debugger control. For example, either the command
loads the Simulink demo model vdp
into memory, starts the simulation, and stops the simulation at the first block in the model's execution list.
Note When running the debugger in graphical user interface (GUI) mode, you must explicitly start the simulation. See Starting the Simulation for more information. |
![]() | Simulink Debugger | Starting the Simulation | ![]() |