All Forums >> [Scripting] >> Post a VBScript >> Setting Up Trace in Includes Files Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
I have a huge includes file that I use for almost all of my scripts. Sometimes, though, I want to see just which functions and subs are being called from the includes file. So, I setup two Constants in my includes file: Const TRACE = False Const TRACEFILE = "C:\Trace.log"
That way, when I want to get a listing of any of my functions or subs that are firing - sometimes it gets hard to keep track, if they are calling each other - i set the TRACE to True, and run the script. I used the code below to add the trace commands to my includes file. It may help someone else.
_____________________________
"Would you like to touch my monkey?" - Dieter (Mike Meyers)
"It is better to die like a tiger, than to live like a pussy." -Master Wong, from Balls of Fury