How to use IE for Javascript script debugging

Source: Internet
Author: User
In the B/S Mode ProgramJavaScript scripts are often used. The functions are very powerful, but debugging is very troublesome. Because there is no proper tool, ie supports script debugging for JavaScript, you only need to set the IE and script accordingly.
1. Internet Options-> advanced-> disable script debugging to remove the team behind it. So that IE supports script debugging, but this is not enough, we still need CodeAnd add the debugger where debugging is needed. This indicates that Debugging starts from here (sometimes you need to open ie again ). When this page is opened, a select box for script debugging appears. Select a tool for debugging.
The following is a simple example.
<HTML>
<Head>
Script debugging
</Head>
<Body onload = 'test () '>
This is an example of calling the script debugger.
</Body>
</Html>
<Script language = 'javascript '>
Function Test ()
{
Debugger;
VaR STR = 'this is an example of calling the script debugger ';
Alert (STR );
}
</SCRIPT>

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.