Batch Mode Simulation : Breakpoints : Breakpoint Definition

Breakpoint Definition

Breakpoints are defined using the set breakpoint statement:

SET BREAKPOINT [ breakpoint_name => ] trigger
DO
statement
[ ; statement ]
. . .
END BREAKPOINT ;

where:

breakpoint_name is any valid SCL identifier; trigger is an event expression or the keyword every followed by a numeric expression; statement is any legal SCL statement except go statements.

Definition of a breakpoint automatically enables it. If a Simulation Control Program is assigned to an activity in your system, suspension of this activity disables all breakpoints in this Simulation Control Program. Resumption of the activity re-enables the breakpoints.

Breakpoints are checked at the beginning of each Go command, and after each execution step. The statements associated with this breakpoint are executed whenever the breakpoint is enabled and the trigger is true. The trigger evaluates to true if the event expression is true, or if the amount of time specified by the numeric expression following every has passed.