Debugging scripts

Share and discuss VBScripts here

Debugging scripts

Postby hdscarbro » Mon Jun 29, 2009 10:44 am

Hi,

Is is possible to configure ncplot to drop into a vbs debugger when a script gets a runtime error? If not, is there at a way of getting a line number back what a script gets a runtime error? I've poked around in the microsoft documentation and haven't been able to find any documentation with the right incantations.

David
hdscarbro
 
Posts: 11
Joined: Fri Jun 06, 2008 11:59 am
Location: Chelmsford, MA

Re: Debugging scripts

Postby scottmartinez » Mon Jun 29, 2009 7:56 pm

David,

Honestly, I don't really know. Once the script execution begins, it's pretty much out of my hands. I know what you mean though, it would be nice to be able to debug scripts.

Scott
User avatar
scottmartinez
Site Admin
 
Posts: 215
Joined: Sat Mar 11, 2006 8:49 pm

Re: Debugging scripts

Postby hdscarbro » Wed Jul 01, 2009 7:26 pm

I found how to get the debugger started on a script error.

Set the registry key

HKEY_CURRENT_USER\Software\Microsoft\Windows Script\Settings\JITDebug

to 1

I think you also need to have mse7.exe (Microsoft Script Editor) installed. It's part of Office and installed by installing from the Office CD: "Office Tools/HTML Source Editing/Web Scripting/Web Debugging"
hdscarbro
 
Posts: 11
Joined: Fri Jun 06, 2008 11:59 am
Location: Chelmsford, MA


Return to Scripting

Who is online

Users browsing this forum: No registered users and 2 guests

cron