Re: Editing and debugging VBScript



As far as I know, no editor has an
"integrated" runtime debugger, only integrated
buttons or functions to run the MS script
debugger. I haven't used the script debugger.
(Personally I don't see the point, since the
WSH tells you the line and error anyway.)
But it's easy enough to do it. Just install
the MS script debugger and then run your
script with the command-line switch:

WScriptPath //X FilePath

(That's supposed to be
"WScript-space-slash-slash-X-space-FilePath"
My Outlook Express wants to add "file:"
before the slashes, so yours might, too.)



I am trying to get some answers for work related to using VBscript Windows
scripting. I am asking for VBSedit at work. People are saying you don't
need a special editor, just create and debug the vbscript using Visual
Studio, or notepad. Notepad doesn't have intellisense capability, and it
doesn't have an integrated debugger. Unfortunately, I can't seem to find
a
way to get Visual Studio to interface with cscript.exe or wscript.exe.
When
I insert a VBscript into Visual Studio, I get several errors about Dim
statements not being correct, etc.. Could somebody please verify if
vbscript can be:

1. Edited
2. Debugged
3. Ran

in Visual Studio?

Regards,

Randy Galliano




.



Relevant Pages

  • Re: VBS Editor???
    ... du musst den Debugger nicht irgendwie in die "Gänge" setzen. ... So erfolgen die Aufrufe des Debuggers durch den WSH (entweder durch das ... die Aufrufe //D oder //X für das Script. ... > Ich habe den Quelltext von 'quadrat.vbs' in MSE7.EXE geladen. ...
    (microsoft.public.de.german.scripting.wsh)
  • Re: Testing strategy for Tk application?
    ... your GUI should be nothing but a bunch of widgets that call ... > action invoke focus main ... > and then read a test script from stdin. ... I'll embed a built-in debugger. ...
    (comp.lang.tcl)
  • RE: Problem with LWP::UserAgent
    ... have an xml file that contains a list of URLs. ... hash and pass them as a parameter into the function that does LWP get. ... > assume your script is named net.pl, you can involve the debugger with: ...
    (perl.beginners)
  • Re: IS there a java script debuger that can be used with frontpage and
    ... I wasn't sure, as I have the Script Debugger on my system, but I don't ... If you have FrontPage, you have Microsoft Script ...
    (microsoft.public.frontpage.programming)
  • Re: Why "window.open( my.jpg , _blank )" does work on IE but not work on Navigate2
    ... If I don't insert the script, ... , debugger will be invoked). ... no error message popup(other HTML codes are the ... > instance of Internet Explorer on the Advanced tab of the Internet Options ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)