Using breakpoints

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 can use the Breakpoints command to list all the breakpoints that have been set in the state chart, delete breakpoints, and jump to breakpoints. Breakpoints are prefaced with a red ball.

To attach a breakpoint to a state action

1.    Point to the Header portion of the state and right-click.

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.    Position the cursor over the transition.

2.    Right-click and select Properties to access the Transition Properties dialog box.

3.    Activate Attach Breakpoint.

4.    Click OK, or press ENTER

To list all breakpoints

      Choose State Charts > Breakpoints.

To jump to a breakpoint

1.    Choose State Charts > Breakpoints.

2.    In the dialog box, select the breakpoint and click Jump.

To delete a breakpoint

1.    Choose State Charts > Breakpoints.

2.    In the dialog box, select the breakpoint to be deleted and click on the Remove button.

To delete a breakpoint – Alternate Method

1.    Point to the Header portion of the state and right-click.

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 Continue Simulation button toolbar button.