Ever wonder what script line is crashing your code? Better yet, good luck finding where that line of code exists
in your script! If you're not already using it, for sanity purposes, you must download the MS Script Debugger! It will save you hours of trial and error trying to debug your code.
Code: Since its "MS" script debugger, it doesn't work w/Netscape. i have yet to find a worthy script debugger for NS. If you find one, please let me know! Happy Debugging.
Summary straight from MS:
Microsoft� Script Debugger is a debugging environment that extends the functionality of Microsoft� Internet Explorer 4.0 and later and Microsoft Internet Information Server (IIS). You can use the Script Debugger to browse, edit, and debug .htm and .asp files that contain Microsoft� Visual Basic� Scripting Edition (VBScript) or Microsoft� JScript�. You can also use it to combine HTML and script development and to test programs written in other languages. You can then use the Microsoft virtual machine (Microsoft VM) to run the programs and to debug scripts for any scripting language engine that supports Microsoft� ActiveX� debugging interfaces.
The Script Debugger provides the same functionality as traditional debuggers, including the ability to:
-Set and clear breakpoints.
-Step through and over procedures.
-Display and change the values of variables and properties.
-View the call stack, and navigate to any currently loaded procedure.
You can also use the Script Debugger to open and edit HTML pages. The Script Debugger supports script colorization for maximum readability.
The Script Debugger and accompanying documentation is available for download at Microsoft Scripting Technologies (a URL definitely worthy of bookmarking): msdn.microsoft.com/scripting/default.htm?/scripting/debugger/dbdown.htm