Script Debugging Tip

Example scripts and tips (replaces Old Scripts & Tips archive)

Moderators: Dorian (MJT support), JRL, Phil Pendlebury

Post Reply
User avatar
Marcus Tettmar
Site Admin
Posts: 7380
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Script Debugging Tip

Post by Marcus Tettmar » Mon Mar 01, 1999 12:00 am

Contributed By: Christopher Willmot [email protected]
Submitted On: 01/03/99

Did you know that you can insert debugging details into the log file? For example:

WriteLn>&ltlogfile&gt,var = %var%

This shows that the value of the variable 'var' at that particular stage.

Also, once the log file is set up, turning logging off doesn't disable the 'View Log File' command.
You then have complete control over what is recorded, with the bonus of easy viewing!

[Editors note : Macro Scheduler 5.03 will have a further debug command called TimeStamp which will output the given message to a file just as the example above does, but will also insert the time with milliseconds so that you know exactly when the step took place]

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts