Peter Lorenz | Simulation und Animation |
---|
If a program terminates with an execution error or terminates fine but produces improper results an interactive debugging tool is a big help. GPSS/H has such an interactive debugging tool. To reach this tool the program must be started with the parameter TV at the end. The following list shows all interactive debugging commands: (the underlined part of the word gives the shortest possible command.)
Command | Operands | Explanation | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
AT | One or more Block names or numbers | The AT command prompts the user for a list of interactive debugging commands to be executed every time
a Transaction reaches any of the designated Blocks. The list of commands ends with an END .
The AT effect can be canceled by the UNBREAK command. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
BREAK | One or more Block names or numbers | The BREAK command sets an global Breakpoint.
This Breakpoint can be released by the UNBREAK command. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CHECKPOINT | none | The CHECKPOINT command writes an image of the model to the disk.
This model can be restored by the RESTORE command. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CONTINUE | Zero or more Block names or numbers | The CONTINUE command is used to resume execution of a model.
Any Block names or numbers specified in the CONTINUE command are set as local breakpoints,
which remain in effect only for the duration of the CONTINUE command.
The enabling and disabling of local Breakpoints has no effect on global Breakpoints. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SCAN, SYSTEM, NEXT |
Local trap conditions can be set by the CONTINUE command. For a summary
of these conditions, see the description of the TRAP command in this table. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CX | Zero or more Block names or numbers | CX stands for Continue eXecution.
It operates like the CONTINUE command but the pending model output is suppressed | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DISPLAY |
|
The DISPLAY Command can select a wide variety of model statistics
and other useful information for display on the screen. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DS | An optional Block name or number | The DS command can be issued only in the TV mode. This command displays the source code for the given block
in the source code window of the debugger. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
IGNORE |
A Block name or number, followed by a count | The command is used to temporarily suppress a global breakpoint count-times. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
NEXT |
none | This command specifies that execution of the model is to proceed until the next active Xact is picked up in the simulators CEC scan. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
PRINT |
see DISPLAY |
The PRINT command can write a wide variety of model statistics and other useful information for display
on the standard output device. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
QQ | none | The QQ command causes the immediate termination of the run without an output. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
QUIT | none | The QUIT command terminates a run.
If any model output is pending at the time the QUIT command is issued,
a warning is given, and the QUIT command must be typed a second time
to suppress the output. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
RUN | Zero or more Block names or members | The RUN command is used to initiate execution of the model until it reaches a breakpoint.
It is possible to set TRAP conditions for a run. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SCAN |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
RESTORE | none | The RESTORE command restores a saved image of a model. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
STEP | optional count | The STEP command runs through the given number of Blocks. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
STOP | none | The STOP command stops the run. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SET |
TIME[=]n
|
The SET command can be used to set a CPU time limit which supersedes any currently active time limit,
including time limits set by SIMULATE statements within a model.
An "S" suffix indicates that the time limit is specified in seconds,
and am "M" suffix indicates that the time limit is specified in minutes.
An other possibility is to turn the terminal log ON or OFF
and to turn the TV mode ON or OFF . | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TRAP | SYSTEM |
The TRAP SYSTEM command specifies that each time the active Xact comes to rest, a message is to be issued,
and control returns to the user.
Global TRAP SYSTEM conditions can be set by the RUN command.Local TRAP conditions can be set by the CONTINUE command.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
UNBREAK | One or more Block names or number | The UNBREAK command removes global Breakpoints. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
UNTRAP | SYSTEM "*" |
The UNTRAP command removes traps set via the TRAP command.
UNTRAP * removes all current traps. |