Using Simulink Previous page   Next Page

Using the Debugger's Graphical User Interface

Select Debug from a model window's Tools menu to display the Simulink debugger's graphical interface.

The following topics describe the major components of the debugger's graphical user interface:

Toolbar

The debugger toolbar appears at the top of the debugger window.

From left to right, the toolbar contains the following command buttons:

Button
Purpose

Step into next method (see Stepping Commands for more information on this and the following stepping commands).

Step over next method.

Step out of current method.

Step to first method at start of next time step.

Step to next block method.

Start or continue the simulation.

Pause the simulation.

Stop the simulation.

Break before the selected block.

Display inputs and outputs of the selected block when executed.

Display current inputs and outputs of selected block.

Toggle animation mode on or off (see Animation Mode). The slider next to this button controls the animation rate.

Display help for the debugger.

Close the debugger.

Breakpoints Pane

To display the Breakpoints pane, select the Break Points tab on the debugger window.

The Breakpoints pane allows you to specify block methods or conditions at which to stop a simulation. See Setting Breakpoints for more information.

Simulation Loop Pane

To display the Simulation Loop pane, select the Simulation Loop tab on the debugger window.

The Simulation Loop pane contains three columns:

Method Column

The Method column lists the methods that have been called thus far in the simulation as a method tree with expandable/collapsible nodes. Each node of the tree represents a method that calls other methods. Expanding a node shows the methods that the block method calls. Block method names are hyperlinks. Clicking a block method name highlights the corresponding block in the model diagram. Block method names are underlined to indicate that they are hyperlinks.

Whenever the simulation stops, the debugger highlights the name of the method where the simulation has stopped as well as the methods that directly or indirectly invoked it. The highlighted method names visually indicate the current state of the simulator's method call stack.

Breakpoints Column

The breakpoints column consists of check boxes. Selecting a check box sets a breakpoint at the method whose name appears to the left of the check box. See Setting Breakpoints from the Simulation Loop Pane for more information.

ID Column

The ID column lists the IDs of the methods listed in the Methods column. See Method ID for more information.

Outputs Pane

To display the Outputs pane, select the Outputs tab on the debugger window.

The Outputs pane displays the same debugger output that would appear in the MATLAB Command Window, if the debugger were running in command-line mode. The output includes the debugger command prompt and the inputs, outputs, and states of the block at whose method the simulation is currently paused (see Block Data Output). The command prompt displays current simulation time and the name and index of the method in which the debugger is currently stopped (see Block ID).

Sorted List Pane

To display the Sorted List pane, select the Sorted List tab on the debugger window.

The Sorted List pane displays the sorted lists for the model being debugged. See Displaying a Model's Sorted Lists for more information.

Status Pane

To display the Status pane, select the Status tab on the debugger window.

The Status pane displays the values of various debugger options and other status information.


Previous page  Introduction Using the Debugger's Command-Line Interface Next page

© 1994-2005 The MathWorks, Inc.