Debugging

Analyze chart simulation for design inconsistencies

Set breakpoints, monitor data values, and step through functions in state diagrams. Detect edit-time and run-time modeling errors.

Topics

Debugging Stateflow Charts

Set breakpoints and monitor data to debug Stateflow® charts.

Detect Modeling Errors During Edit Time

Discover modeling errors as you design your Stateflow chart.

Detect Common Modeling Errors During Chart Simulation

Describes common modeling errors that Stateflow flags.

Animate Stateflow Charts

Visually check behavior during simulation by using chart animation.

Commenting Stateflow Objects in a Chart

Comment out Stateflow objects to exclude them from simulation.

Debug Run-Time Errors in a State Transition Table

Use breakpoints to debug state transition tables.

Debug a MATLAB Function in a Chart

Use breakpoints to debug MATLAB® functions.

Debug Errors in a Truth Table

Use breakpoints to debug truth tables.

Avoid Unwanted Recursion in a Chart

Describes guidelines for avoiding unwanted recursive behavior.

Related Information