To debug a statechart for which you have generated code, right-click a Run Statechart function and select Debug Statechart. This action is valid only when you have linked the Run Statechart function to a statechart.
![]() |
Note If you do not see the Debug Statechart option, you might have disabled statechart debugging. You must re-enable debugging and re-generate the code before proceeding. |
While debugging a statechart, you can perform the following actions: