| Simulink® | ![]() |
To start the simulation, click the Start/Continue button on the debugger toolbar.

The simulation starts and stops at the first simulation method that is to be executed. It displays the name of the method in its Simulation Loop pane and in the debug pointer on the block diagram. The debug pointer indicates on the block diagram which block method is being executed at each step. At this point, you can
Set breakpoints.
Run the simulation step by step.
Continue the simulation to the next breakpoint or end.
Examine data.
Perform other debugging tasks.
As the simulation progresses, the block diagram updates with debug pointers.
The debugger displays the name of the method in the Simulation Loop pane, as shown in the following figure:

The debugger also displays a graphical debug pointer (see Debug Pointer) in the block diagram of the model that you are debugging. The debug pointer points to the first block method to be executed.

The following sections explain how to use the debugger controls to perform these debugging tasks.
Note When you start the debugger in GUI mode, the debugger command-line interface is also active in the Command Window of the MATLAB product. However, to prevent synchronization errors between the graphical and command-line interfaces you should avoid using the command-line interface. |
![]() | Starting the Debugger | Running a Simulation Step by Step | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |