Starting the Debugger
You can start the debugger either from a model window or from
the command line. To start the debugger from a model window, select Simulink
Debugger from the model window Tools menu.
The debugger graphical user interface appears (see Using the Debugger's Graphical User Interface).
To start the debugger from the MATLAB Command Window, enter
either a sim command or the sldebug command. For example the following
commands load the demo model vdp into memory, starts
the simulation, and stops the simulation at the first block in the
model's execution list
sim('vdp',[0,10],simset('debug','on'))
or
sldebug 'vdp'
Note
When running the debugger in graphical user interface (GUI)
mode, you must explicitly start the simulation. See Starting a Simulation for more information. |
 | Getting Online Help | | Starting a Simulation |  |
Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
Get this Simulink Kit