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

or 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.


  Simulink Debugger Starting the Simulation