For a long time, I didn't know any better way to "debug" a VBScript than to find where it blew up from the error message and put
MsgBox()statements right before it. Eventually I needed a better way, and I found this quick and easy tip.
- Open command window
<cscript|wscript> <file.vbs> //X