Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Setting Up Trace in Includes Files

 
Logged in as: Guest
arrSession:exec spGetSession 2,16,53085
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
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!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Setting Up Trace in Includes Files - 10/27/2007 12:16:13 AM   
  DiGiTAL.SkReAM


Posts: 1128
Score: 6
Joined: 9/6/2005
From: Florida, USA
Status: offline
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
 
 
Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> Post a VBScript >> Setting Up Trace in Includes Files Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts