Escolar Documentos
Profissional Documentos
Cultura Documentos
The MS Script Editor is an amazing IDE for script development and has a
javascript debugger built into it that is closely tied to IE6 and allows for
seamless Javascript debugging of very sophisticated web-based applications.
Not to be confused with the lackluster Microsoft Javascript Debugger
(1997), the Microsoft Script Editor (2001) is a fully functioning
editor/debugger that is very robust and has never crashed for me after
many months of use. Best of all, it’s FREE if you already have one of the
many MS products that includes it as an optional feature.
Since Microsoft obviously does not wish to support JSP developers with their
current flagship developer products, this is an amazing godsend for Java/JSP
programmers developing for Internet Explorer. My company invested $1200 into
an MSDN license, only to find that the free OfficeXP Scripting Editor worked
much better than Visual Studio.NET, which does not support JSP development.
And look across the internet; you won’t find a better solution than the one listed
below if you are a Javascript/Jscript developer oriented to IE.
1) From the Start Menu, if Frontpage is listed, start it, and search on the
help files for "Script Debug".
If Frontpage is not in your start menu, it is possible to add only the script editor
as a standalone application:
This should install the editor from CAB files on your hard disk, but it may be
necessary to use the Office CD as an alternative.
and you can put a shortcut for it in your quickstart menu with this path.
3) Once the script editor was started, run the Web Debugging option under the
Debug Menu.
This will prompt you to install the debugging features and warns that the editor
will have to be restarted to use the Debugger.
1) Add the “debugger” keyword to any script, and it opens the script editor
at that point, when the script is run in the browser. The debugger should come
up when the browser issues an error alert. At first this was not working for me,
but I went into the IE options panel, under Advanced and turned off “Hide
scripting Errors” option, as well as turned off “Friendly Error messages”. I also
had to turn on the Status Bar under the View menu. The debugger will also
come up if you have a script debugger entry in IE under the View menu, like
this: debugger;
Click Yes.
Click Yes.
2) You may be prompted to run a regedit script the first time you try to use
the debugger. Open a CMD window and run the path in the prompt, to set the
proper Registry settings (notice it’s forward slash before the RegServer
argument):
The View menu allows entry straight into the debugger on the next click
event.
5) Under the Debugger menu, there are now all the typical debugging
commands available.
Also notice:
When the debugger first comes up, it will point out any error the
browser found.
Use the Quickwatch page to inspect a page object or javascript object,
revealing it’s properties in an expanded view. Walk the DOM up or down
and see all currently set attributes and innerHTML content!
Use the Quickwatch command to evaluate a current object or variable
selection, then add it to the Watch list at the bottom of the editor
window. Notice breakpoints have been set by clicking on the left margin
of the page.
6) Also refer to the Help file in the Script Editor for debugger commands
help. It's short and sweet.
A few quick notes regarding the use of the debugger and Javascript error
handling: