Re: jscript development tool

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Michael Harris \(MVP\) ("Michael)
Date: 02/21/05


Date: Mon, 21 Feb 2005 10:12:17 -0800


> I know microsoft provide a free jscript debugger tool-windows script
> debugger.But I thinks it is not good enough, and microsoft didn't
> update it anymore since version 1.0.
>
> Can someone advise any better jscript development tools?

Do you have any Office 2000 or Office XP apps?

To install the optional Microsoft Script Editor

--> 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
http://maps.google.com/maps?q=Sammamish%20WA%20US 


Relevant Pages

  • Re: Whats a good IDE for VBScript
    ... This is the Microsoft ... To install the optional Microsoft Script Editor ... 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: Zusammenarbeit von Windows-Scripting-Host und Internet-Explorer-Debuggger
    ... dass ein Debugger minderer Qualität komplizierte ... Das Fenster ist überschrieben "Microsoft Script Editor." ... je nachdem ob das Script instrumentiert ist oder nicht. ... und zu diesem Zweck ausschließlich Konstrukte aus der der VBS-Sprachbeschreibung ...
    (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)