Main Content

Debugging Stateflow Charts

For Stateflow® charts in Simulink® models, you can perform most debugging tasks directly from the Stateflow Editor:

  • Set breakpoints to stop execution in specific objects, such as charts, states, transitions, graphical functions, truth table functions, local events, and input events.

  • Enable, disable, and set conditions on breakpoints in the Breakpoints and Watch window.

  • Add data that you want to monitor during simulation in the Breakpoints and Watch window.

  • After execution stops at a breakpoint, change data values and step through the simulation.

In addition, during simulation, you can display and change the values of Stateflow data in the MATLAB® Command Window.

For information on debugging Stateflow chart objects that you execute in MATLAB, see Debug a Standalone Stateflow Chart.

Related Topics