Debug
Impostare i punti di interruzione per arrestare l'esecuzione in oggetti specifici, come grafici, stati, transizioni, funzioni grafiche, funzioni della tabella della verità, eventi locali ed eventi di input. Abilitare, disabilitare e impostare condizioni sui punti di interruzione nella finestra relativa e nella watch window. Aggiungere i dati che si desidera monitorare durante la simulazione nella finestra dei punti di interruzione e nella watch window. Dopo che l'esecuzione si è arrestata in un punto di interruzione, cambiare i valori dei dati e procedere con la simulazione.
Inoltre, durante la simulazione, è possibile visualizzare e modificare i valori dei dati di Stateflow® nella finestra dei comandi di MATLAB®.
Per informazioni sul debug degli oggetti dei grafici Stateflow che si eseguono in MATLAB, vedere Debug a Standalone Stateflow Chart.
Argomenti
- Set Breakpoints to Debug Charts
A breakpoint indicates a point at which Stateflow halts the simulation of a chart.
- Inspect and Modify Data and Messages While Debugging
Shows you various ways that you can track the values for Stateflow data and self activity during simulation.
- Control Chart Execution After a Breakpoint
A breakpoint indicates a point at which Stateflow halts the simulation of a chart.
- Use Active State Output to Debug Charts
Find and eliminate errors in Stateflow charts.
- Detect Modeling Errors During Edit Time
Discover modeling errors as you design your Stateflow chart.
- Detect Common Modeling Errors During Simulation
Find common modeling errors when you simulate your Stateflow chart.
- Animate Stateflow Charts
Visually check behavior during simulation by using chart animation.
- Comment Out Objects in a Stateflow Chart
Exclude Stateflow objects 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.