Issue the trace command from the command line to trace program execution. Issuing trace with no arguments causes each source line in the program to be displayed in the command window before it is executed.
The trace command uses the same syntax as the stop command; see " Using Commands". For example:
To trace and print a on every source line:
trace {print a}
To trace line 17 if a is greater than 10:
trace at 17 if a .GT. 10
In addition, Prism interprets
trace line-number
as being the same as
trace at line-number
To trace machine instructions, use the tracei command, specifying a machine address. When tracing machine instructions, Prism follows all procedure calls down. The tracei command has the same syntax as the stop command; see " Using Commands".
The history region displays the address and the machine instruction. The execution pointer moves to the next source line to be executed.
To delete a trace, use the show events command to obtain the ID associated with the trace, then issue the delete command with the ID as its argument. See " Using Commands".