Page 1 of 1

Debugging scripts

PostPosted: Mon Jun 29, 2009 10:44 am
by hdscarbro
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

Re: Debugging scripts

PostPosted: Mon Jun 29, 2009 7:56 pm
by scottmartinez
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

Re: Debugging scripts

PostPosted: Wed Jul 01, 2009 7:26 pm
by hdscarbro
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"