Re: Can't find script debugger

From: Michael Harris \(MVP\) ("Michael)
Date: 02/27/04


Date: Thu, 26 Feb 2004 18:04:58 -0800

Text wrote:
> I'm not worried about the script at the moment, its just the third
> I've
> written and its more of atest than anything else. I just want to be
> able to
> step - by -step debug it. The debugger doesn't even open when I use
> the
> primal script 3.1 trial.
>

How about machine details like OS version and WSH version?

Do you have any Office 2000 or Office XP apps?

To install the optional Microsoft Script Editor (which includes a better
script debugger)

--> Add/Remove programs, <your Office 2000/XP app>
--> change, add or remove features

then look under Office Tools -> HTML Source Editing -> Web Scripting.

With the Office XP version of MSE (MSE7.EXE), syntax coloring and
IntelliSense both work great right out of the box. It already knows about
js/vbs/wsf script extensions (I had to add the wsc extension manually).

You can also pass a file name via the command line when you start MSE7.EXE
and it will open the script in the editor (the mse.exe Office 2000 version
wouldn't accept a file name via the command line).

You can't start the debugger for WSH hosted script files via the Debug /
Start menu. But there is a 'View/Open With...' menu option. The Open With
dialog already had wscript.exe as an option.

You can add more 'View/Open With...' choices for:

wscript.exe //d --> which I named wscript (debug enabled)
wscript.exe //x --> which I named wscript (start in debugger)

and cscript.exe versions as well. The dialog complains (only a bit,
probably because of the switches) but lets you add them anyway.

What's really nice is that when you use these, you get a choice of debugging
in the current instance of MSE (where you're editing) or a new instance of
MSE or in any other available script debugger you may also have installed,
such as the various versions of VStudio

-- 
Michael Harris
Microsoft.MVP.Scripting
Microsoft® Windows®2000 Scripting Guide
http://www.microsoft.com/technet/scriptcenter/scrguide/sagsas_overview.asp
TechNet Script Center Sample Scripts
http://www.microsoft.com/technet/scriptcenter/default.asp
Download in HTML Help format (searchable)
http://www.microsoft.com/downloads/release.asp?ReleaseID=38942
WSH 5.6 documentation download
http://www.microsoft.com/downloads/details.aspx?FamilyId=01592C48-207D-4BE1-8A76-1C4099D7BBB9&displaylang=en


Relevant Pages

  • Re: Debugging or even running a script in MSE7
    ... Of course I haven't used the old downloadable script debugger in years... ... MSE is actually a stripped down version of InterDev (even the same program ... You can't start the debugger for WSH hosted script files via the Debug / ...
    (microsoft.public.scripting.vbscript)
  • Re: Script Debugger
    ... > something reasonably lightweight. ... To install the optional Microsoft Script Editor ... MSE is, for all practical purposes, a lightweight version of Visual ... You can't start the debugger for WSH hosted script files via the Debug / ...
    (microsoft.public.scripting.vbscript)
  • 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)