Windows Tracing Enhancements

The Window’s tracing capability has been enhanced to send the output of the Trace Window directly to an output file. In addition, DebugPlus has been extended to trace all program RUNs, CALLs, PERFORMs and Function Calls to allow the programmer to easily trace how programs are being referenced and from where

Trace Menu changes:

Threenew options have been added to the Trace Window menu:

The first option, "Trace to File", initiates the output of the Trace Window to a serial file. When first selected, the system will request a file name, create it, and begin sending all of the data from the Trace Window to this file. While the trace file is active (that is tracing is being captured to a file), a small check mark will appear beside the "Trace to File" on the menu. If you select this entry again, the system will stop output to the file and the check mark will be removed.

The second option, "AutoOpen trace file", will automatically log all trace output to a file. The output will be sent to the last file defined in the "Trace to File" whenever the Trace Window is active.

Note: Trace output is ONLY sent to the trace file IF the Trace Window is active. The window may be minimized but tracing will end when it is closed.

The third option, "Trace Program Loads", controls the tracing of every program load and provides information as to why the load occurred (associated RUN, CALL, PERFORM, etc.).

SETTRACE Directive Changes:

The Settrace directive has been enhanced to allow the application to better control of the Windows Trace Window. New SETTRACE options are:

SETTRACE OPEN "<filename>"
This directive causes the system to open the Trace Window (if not already open) and start logging trace output to the file specified. If a null string is specified for the file name, only the Trace Window is activated.

SETTRACE CLOSE
This directive will close the Trace Window and stop any logging.

SETTRACE HIDE
This directive will cause the Trace Window to be minimized

SETTRACE SHOW
This directive will cause the Trace Window to be restored to either normal or full screen depending on its last state.

SETTRACE STOP
This directive will suppress output to the Trace Window but it will continue to send he output to the file, if a file is active.

SETTRACE START
This directive will start sending to the Trace Window.