FORTRAN Reference Manual

Running and Debugging Programs
FORTRAN Reference Manual528615-001
11- 9
Using the INSPECT TACL PARAM
If you use more than one method of selecting a debugger, precedence is established
as follows: A program file value (specified either in a compiler directive—INSPECT or
NOINSPECT—or a Binder command—SET INSPECT ON or SET INSPECT OFF)
overrides the value specified in the RUN command, which overrides the value
specified in a TACL session.
Using the INSPECT TACL PARAM
If an error occurs in your FORTRAN program—for example, you attempt to divide by
zero—the FORTRAN run-time routines write an error message to the standard log file
and, if you specify the INSPECT PARAM before you run your program, invoke a
debugging program.
The INSPECT PARAM is meaningful only if you specify ENV COMMON.
The following is the syntax of the INSPECT PARAM:
PARAM INSPECT
The default is INSPECT OFF.
If you specify PARAM INSPECT ON, and certain run-time errors occur, FORTRAN
invokes a debugger program—Inspect or Debug—rather than terminating your
program immediately.
If you specify PARAM INSPECT OFF or you do not specify an INSPECT PARAM, your
program terminates immediately.
The INSPECT PARAM affects only those programs that you run after you set the
PARAM. It does not affect programs that you have already started.
For more information about choosing the Debug program or the Inspect program for
debugging, see Using Debug Facilities on page 11-8.
ON
OFF


