Products & Services Solutions Academia Support User Community Company

Learn more about Simulink   

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'

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS