JS debugging environment settings

Source: Internet
Author: User

the Internet is now popular Web2.0 technology, when talking about it, you will think of Ajax . Hidden in Ajax a large part of JavaScript Code .

IfJavascriptThe code is wrong. AddAlert ()???Here we provide a brand newJSDebugging method,

More advanced debuggingJSIn this article, we hope you can discuss it together!

First, the computer must be installedMicrosoft Word 2000Above (My isWord2003).

Open Word In the left-side Navigation Pane Selected " Tools " --- " "Macro ( M )" ----- " " Microsoft Script compiler (W) "Such

Install the compiler as prompted. After the installation is complete,WordCode conversion interface.

the second is to ie the browser settings are reduced,

in ie " Tools " - " " Internet options .. " --- "advanced"

SetDisable script debugging2If the machine is selected.

For example


After removing the selection, open a newIE, You will findIE"View"More Columns

"Script debuggingProgram"Careful people can find that there is no such option before it is installed.

For example


Finally, debug our JS program, run the page to JS on the problematic page,

Then clickIE"View"---""Script debugging program"-"" Open"

(It may be2Tips, select "OK ).

make the following settings before debugging:

in the menu," debug " || " window " " local variable " " Monitoring " " instant "

To help them out, their functions are as follows:

Local variable: AllVaRThe value

Monitoring:When you know the variable name and the value, you can enter the variable name here,

Then press enter to return the value.

Instant: Click here to change the value of a variable. The name of the input variable corresponds to the changed value.Enter


F10YesF11Follow up(View the debugging menu in detail)

A similar interface appears. If there is a problem, set a "breakpoint" and refresh the page for debugging.


You are stillJSProblems? Hope to read this articleArticleI will give it to you laterJSCareer help.

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.