Debugging Server Event Scripts

Top  Previous  Next

 

The Script Log and Trace Log files are invaluable when debugging Server Event Scripts because no user interface is displayed by the script processor. The DISPLAY command is also important because it writes the values of all variables to the Script Log.

 

This is a common structure for testing and developing new Server Event Scripts with logging commands at the top and DISPLAY called at the bottom:

 

LOG "event_script.log" /new

TRACELOG "event_trace.log" /new

; << Your Event Script logic goes here! >>

DISPLAY

 

Note: Once you are satisfied that the script is working properly you should modify or remove the logging commands to avoid creating a new log file each time the script is executed in the future. Please consult the Script Help File topic pages for the LOG and TRACELOG command for more details regarding logging options.

 

 

See also: Programming Server Event Scripts