Main Content

Allow setting breakpoints during simulation

Description

Enables adding breakpoints in MATLAB Function blocks, Stateflow® charts, State Transition blocks, and Truth Table blocks during simulation.

Category: Simulation Target

Settings

Default: Off

Off

Model does not support adding breakpoints in MATLAB Function blocks, Stateflow charts, State Transition blocks, or Truth Table blocks during simulation. The debugger for these blocks is enabled only when you add breakpoints before running your model. If there are no breakpoints when simulation begins, the running time is optimized but the model does not check for new breakpoints that you add during simulation.

On

Model supports adding breakpoints in MATLAB Function blocks, Stateflow charts, State Transition blocks, and Truth Table blocks during simulation. The debugger for these blocks is always enabled. You can pause the simulation, add breakpoints, and resume the simulation, but the model runs slower than when debugging is disabled.

Tips

  • Simulink® does not save the setting for this configuration parameter with your model. You must re-enable this configuration parameter every time you open your model.

  • Enabling this configuration parameter has significant performance impact on models that contain multiple MATLAB Function blocks, Stateflow charts, State Transition blocks, or Truth Table blocks.

Command-Line Information

Parameter: SFSimEnableDebug
Value: 'on' | 'off' |
Default: 'off'

Recommended Settings

ApplicationSetting
Debugging

On

Traceability

No impact

Efficiency

Off

Safety precaution

No impact

Related Topics