HP 3000 Manuals

TRACE [ HP Transact Reference Manual ] MPE/iX 5.0 Documentation


HP Transact Reference Manual

TRACE 

Turns the trace flag on or off for the specified type of trace.

Syntax 

        {CODE }
{TRACE} {IMAGE} [ON ]
{TR   } {MPE  } [OFF]
Parameters 

CODE             Allows tracing of p-code offsets and segment numbers
                 prior to their execution.

IMAGE            Displays the parameters and return status for TurboIMAGE
                 intrinsic calls made by Transact/iX.

MPE              Displays parameters for MPE/KSAM file reads and writes
                 done by Transact/iX.

ON               Turns on the specified trace flag.

OFF              Turns off the specified trace flag.

Discussion 

This command provides a tracing mechanism for the execution of the
Transact/iX program.  You can trace any combination of IMAGE, MPE/KSAM,
and source execution.  If neither ON or OFF is specified, the current
value of the specified TRACE flag is displayed and you can change it.
Only intrinsic calls made explicitly by Transact/iX appear in the trace.
Those made by the PROC verb do not appear.

Examples 

The first example shows how to use the TRACE command with the CODE
option.

     TRANDEBUG> TRACE CODE ON 
     TRANDEBUG> CONTINUE 

                EXECUTION TRACE:

                SYSTEM          SEGMENT       OFFSET
                ------------------------------------
                PARENT                0           28
                PARENT                0           34
                PARENT                1           10
                PARENT                1           56

     END OF PROGRAM
     :

The second example shows how to use the TRACE command with the IMAGE
option.

     TRANDEBUG> TRACE IMAGE ON 
     TRANDEBUG> CONTINUE 

     -------------------------------------------------------
     FIND(SERIAL)  DB COND: 0   STATUS: 0   RECNO: 35
                   BASE:  BASE1        SET:  SET1

     POSN:   LIST:                   DATA:
      0       ITEM1                   value1
      8       ITEM2                   value2
     -------------------------------------------------------

     -------------------------------------------------------
     FIND(SERIAL)  DB COND: 11  STATUS: -11 RECNO: 35
                   BASE:  BASE1        SET:  SET1

     POSN:   LIST:                   DATA:
      0       ITEM1                   value1
      8       ITEM2                   value2
     -------------------------------------------------------

     END OF PROGRAM
     :

The third example shows how to use the TRACE command with the MPE option.

     TRANDEBUG> TRACE MPE ON 
     TRANDEBUG> CONTINUE 

     -------------------------------------------------------
     FIND(SERIAL)  CCODE: CCE   STATUS: 0   RECNO: 35
                   FILE:  FILE1

     POSN:   LIST:                   DATA:
      0       ITEM1                   value1
      8       ITEM2                   value2
     -------------------------------------------------------

     -------------------------------------------------------
     FIND(SERIAL)  CCODE: CCG   STATUS: -1  RECNO: 35
                   BASE:  BASE1        SET:  SET1

     POSN:   LIST:                   DATA:
      0       ITEM1                   value1
      8       ITEM2                   value2
     -------------------------------------------------------

     END OF PROGRAM
     :



MPE/iX 5.0 Documentation