TRACE Examples


Example 1:

 

START

TRACE

LINE

  

...

 

  

...

 

EOJ

TRACE

OFF

 

Generates the code to print tracing information for each consecutively compiled line of code between the TRACE LINE and TRACE OFF.

 

Example 2:

 

START

TRACE

ERROR

  

...

 

 

...

 

EOJ

TRACE

OFF

 

Generates the code to append tracing information to the system error variable (S$ERROR$) for each consecutively compiled line of code between the TRACE ERROR and TRACE OFF.

 

Example 3:

 

The following is a TRACE LINE Directive output example:

 

00016. C Z=F L=F O=F E=T CMOVE

 

The EOS flag was TRUE while all other flags (ZERO, LESS and OVER) were FALSE on line 16 of inclusion C and the instruction on this line was a CMOVE. The C would be replaced by a space if this line was in the main program source code. All line numbers given include Comment Instructions and are relative to the program or inclusion in which they are located.

 

TRACE ERROR reflects only the line number and inclusion because S$ERROR$ is not large enough to receive all of the

flag information.

 



PL/B Language Reference TOOLTIPHWND Example TRAP Examples