State chart execution is atomic, that is, a simulation cannot be stopped in the middle of a simulation step. When a state chart breakpoint is hit, the simulation breaks after the corresponding Embed time step is finished.
You can attach a breakpoint to an action that causes Embed to stop executing when the selected action occurs.
You can set breakpoints on states and transitions. If a breakpoint is active on a state, a red ball appears to the left of the state name in the state title bar. If a breakpoint is active on a transition, a red ball appears on the arrowhead of the transition.
You use State Chart > Breakpoints to list all the breakpoints that have been set in the state chart, delete breakpoints, and jump to breakpoints. Breakpoints are prefaced with red balls.
To attach a breakpoint to a state action
1. Right-click the Header portion of the state.
2. Click the Activity Manager tab.
3. Under Selected Actions, select the action that is to have a breakpoint.
4. Activate Attach Breakpoint.
5. Click OK, or press ENTER.
To attach a breakpoint to a transition
1. Right-click the transition.
2. Select Properties to access the Transition Properties dialog.
3. Activate Attach Breakpoint.
4. Click OK, or press ENTER.
To list all breakpoints
• Choose State Charts > Breakpoints.
To jump to a breakpoint
• Choose State Charts > Breakpoints and click Jump.
To delete a breakpoint
• Choose State Charts > Breakpoints, then select the breakpoint to be deleted and click Remove.
To delete a breakpoint – Alternate Method
1. Right-click the Header portion of the state.
2. Click the Activity Manager tab.
3. Under Selected Actions, select the action that has a breakpoint.
4. De-activate Attach Breakpoint.
5. Click OK, or press ENTER.
To delete all breakpoints
1. Choose State Charts > Breakpoints.
2. Click Remove All.
To resume execution
• You resume execution by pressing the toolbar button.