Screen Tracing

The screen trace feature enables you to save information about DISPLAYs of screen section items and CREATEs, DISPLAYs, MODIFYs, and INQUIREs of ActiveX objects. You can use screen trace even if the program was compiled without the debugging option.

To perform a screen trace, type:

runcbl  -dle  errfile  myprog 

Because you specified -d (for debugger) on your command line, you will be at the debugger screen after you press Enter.

To turn on screen tracing, type:


Screen trace ON is echoed on the screen.

The information output is useful primarily to Product Supprt.

If you are writing to an error file, you can execute this debugger command:

t  flush  

to cause the error file to be flushed to disk after each write. This can be useful if your program terminates unexpectedly. Note that this option slows down the processing but ensures that the error file is complete.



You will now be running your program normally. Proceed until you encounter the error condition, and then exit. Your error file will contain the error information, all COBOL configuration file variables that you have set, and a record of every file operation.

This can be especially helpful as you assess the cause of the problem.