Tbere are several things you can do to control tbe amount of information
you receive when you are using theTRACE command, and how it is
received. For example, if you do not want program execution tobaIt every time a trace output message is issued, you can use the RUN option:
cp trace svc run
Tben, you canbaIt execution by pressing the Attention key when tbe
interruption you are waiting for occurs.You sbould use tbis option if
you do not want tobaIt execution at all, but merely want to watcb what
is happening in your program.Similarly, if you do not require your trace output immediately, you
can specify that it be directed to the printer, so that your terminal
does not receive any information at all:
cp trace inst printerWben you direct trace output to a
with any printed program output.
from otber printed output, use the
printer at a virtual address lowerexample: cp define printer 006 printer, the trace output is mixed in
If you want trace output separatedCP DEFINE command to define a second
than that of your printer atOOE. For
Tben, trace output will be in a separate spool file. printed output
always goes to tbe printer at addressOOE. Wben you finish tracing, use the CP CLOSE command to close tbe
virtual printer file:
cp close e
-- or --
cp close006 If you want trace output at the printer and at tbe terminal, you can use
tbeBOTH option:
cp trace all both
If you are debugging a program that does a lot ofI/O, or tbat issues many SVCs, and you are tracing instructions or branches, you migbt net
wish to bave tracing in effect when tbe supervisor orI/O routine has
control.Wben you notice that addresses being traced are not in your
program, you can enter:
cp trace end
and tben set an address stop at the location in yourprogram that
receives control when the supervisor orI/O routine has completed:
cp adstop20688 begin
218IBM VM/370 eMS User's Guide
you receive when you are using the
received. For example, if you do not want program execution to
cp trace svc run
Tben, you can
interruption you are waiting for occurs.
you do not want to
is happening in your program.
can specify that it be directed to the printer, so that your terminal
does not receive any information at all:
cp trace inst printer
with any printed program output.
from otber printed output, use the
printer at a virtual address lower
If you want trace output separated
than that of your printer at
Tben, trace output will be in a separate spool file.
always goes to tbe printer at address
virtual printer file:
cp close e
-- or --
cp close
tbe
cp trace all both
If you are debugging a program that does a lot of
wish to bave tracing in effect when tbe supervisor or
control.
program, you can enter:
cp trace end
and tben set an address stop at the location in your
receives control when the supervisor or
cp adstop
218