Batch Mode Simulation : The Simulation Control Program : The Structure Of The Simulation Control Program : Breakpoint Program Section

Breakpoint Program Section

This program section contains the breakpoint definitions. Breakpoint definitions are contained within the keywords SET BREAKPOINT and END BREAKPOINT. Once defined, a breakpoint is automatically enabled.

Breakpoints are checked at the beginning of each Go command, and at the end of each execution step. Enabled breakpoints whose triggering expression is true have their corresponding statements (no go commands permitted) executed. Below is an example of a Breakpoint.

SET BREAKPOINT [valid] DO
WRITE (‘VALID is True.’);
END BREAKPOINT;

The breakpoint section may contain several breakpoint definitions, each delimited by the SET BREAKPOINT and END BREAKPOINT commands.