AppCtrlScript

MAY Computer

Help

SETDEBUGLOG

Applies to  

AppCtrlScript (Module: wmACScr1.dll)

Group  

Debug

See also  

DEBUGMODE

Writes a logfile with every line processed and a timestamp. Although this function can also be used for debugging issues, the preferred way for debugging a script is switching to debug mode (DEBUGMODE command).

However there are reasons it might be helpful to write a debug log instead of switching to debug mode. Samples are errors or problems which do not occur in debug mode because of stepwise processing - or if you want to investigate performance issues and want to know where during the script time is lost.

Syntax

SETDEBUGLOG [<FileName>] 

Part

Description

<FileName>

File name to write debug information to. To clear debug log simply skip parameter.

 

Sample

;Enable debug logging for all processing done in DoStuff subroutine
SETDEBUGLOG "C:\Debug.log"
DoStuff
SETDEBUGLOG