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. (See sim
for information on specifying sim
options.) For example, either the command
sim('vdp',[0,10],simset('debug','on'))
sldebug 'vdp'
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 | ![]() |