Link: http://blogs.msdn.com/ B /ie/archive/2004/10/26/247912.aspx
I thought I 'd take a couple minutes to talk about script debugging and Internet Explorer.
Script debugging is turned off by default you can enable it by going:
Tools-> Internet Options... -> Advanced-> disable script debugging
Prior
To SP2 SP2 the above will turn script debugging on for all applications
That host the webbrowser control (outlook for example ).
On xpsp2 we 've split the option into two:
Tools-> Internet Options... -> Advanced-> disable script debugging (Internet Explorer)
Tools-> Internet Options... -> Advanced-> disable script debugging (other)
When you 've enabled script debugging 'view-> script debugger' will now be present to help you break into the debugger.
TheDebugger
Statement can also be placed anywhere in your code to suspend execution this is similar to setting a breakpoint.
TheStop
Statement is the VBScript version of JScript's debugger statement.
There
Are three applications which I 've used for script debugging. One is
Visual Studio. NET, the second is Microsoft Script debugger and
Third is Microsoft Script Editor:
Miscrosoft script Debugger:
You can obtain a copy of the Microsoft Script debugger here:
Http://www.microsoft.com/downloads/details.aspx? Familyid = 2f%be0-94fd-4569-b3c4-dffdf19ccd99 & displaylang = en
The main msdn page for using the Microsoft Script debugger can be found here:
Http://msdn.microsoft.com/library/default.asp? Url =/library/en-US/sdbug/html/sdbug_1.asp
The
Microsoft Script debugger allows you to debug client side and Server
Side scripts and provides the same functionality as most debuggers do.
Directions on using the Microsoft Script debugger can be found here:
Http://msdn.microsoft.com/library/default.asp? Url =/library/en-US/sdbug/html/sdbug_2.asp
Microsoft Script Editor:
The Microsoft Script Editor comes free with Microsoft Office XP/2003 with FrontPage.
Http://msdn.microsoft.com/library/default.asp? Url =/library/en-US/dnfp2k2/html/odc_fpdebugscripts.asp
Visual studio.net:
For visual studio.net debugging Monica rosculet has written an excellent article on: Debugging script code using Visual Studio.
Other:
Gregg Miskelly a developer on the Visual Studio team has posted some excellent information about: How script debugging works.
-Phil nachreiner