How to debug Javascript in IE

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.