Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows Script Debugger not catching errors with wscript //D script.vb

Status
Not open for further replies.

humbletech99

Programmer
Nov 22, 2005
155
GB
Hi,
I'm new to vbs+wsh and have been learning it this weekend. I used to do wscript //D name.vbs to run the name.vbs and catch any error that was raised, but somehow this is not working now and if I put in a bogus line into the script to force the error, the Windows Scripting Debugger which I have installed does pop up but execution falls through and I get standard windows scripting host pop up of the error as though it had not been run through the debugger.

Any ideas why this behaviour has changed and how I can change it back?
 
What OS are you running on? Which WSH version do you have?

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
whatever WSH version comes with XP Pro by default (fully patched of course). I think that's version WSH 5.6 but I could be wrong since I'm not sure how to check this. The script debugger is the latest version I downloaded it the other day from m$ website.

This used to work the other day but doesn't any more and I'm not sure why that is. Perhaps I changed a setting in the script debugger itself but I don't know which.
 
Unfortunatley the script debugger is a dead product, so not much help from Microsoft on that. FYI: It won't run on Vista.

I would try uninstalling the debugger and reinstalling.

As an alternative, you might want to download a free copy of Visual Web Developer Express Edition from Microsoft. Consider it a light version of Visual Studio and you could use the debugger in there, plus gain intelliSense and other VS features. You can configure buttons for running under CSCRIPT by following the doc I have here:
I did not author the doc and it says that the mods don't work on VWD but that is incorrect, I have it working at home.

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top