Stateflow    

Stateflow Debugger User Interface

Debugger Main Window

This is the Debugger main window as it appears when first invoked.

This is the Debugger main window as it appears when a debug session is active.

Status Display Area

Once a debugging session is in progress, these status items are displayed in the upper portion of the Debugger window:

Breakpoint Controls

Use the Breakpoint controls to specify global breakpoints. When a global breakpoint is encountered normal simulation execution stops and the Debugger takes control on any:

The breakpoints can be changed during runtime and are immediately enforced. When you save the Stateflow diagram, the breakpoint settings are saved.

Debugger Action Control Buttons

Use these buttons when debugging a Stateflow machine to control the Debugger's actions:

Animation Controls

Activating animation causes visual color changes (objects are highlighted in the selection color) in the Stateflow diagram based on the simulation execution.

Activate animation by turning on the Enabled check box. Deactivate animation by turning on the Disabled check box. You can specify the animation speed from a range of 0 (fast; the default) to 1 (slow) seconds.

Display Controls

Use these buttons to control the output display:

Once you have selected an output display button, that type of output is displayed until you choose a different display type. You can clear the display by selecting Clear Display from the Debugger's File menu.

MATLAB Command Field

Direct access to the MATLAB command window is not possible while the Debugger is stopped at a breakpoint. If you need to enter any MATLAB commands during a debugging session, enter them into the MATLAB Command field and press the Return key.


 Runtime Debugging Debugging Runtime Errors