Introduction to JS debugging and browser debugging tools

Source: Internet
Author: User

Nowadays, website development is becoming more and more popular, and the probability of using JS is also very high. js has become a necessary tool for web development. Currently, some websites 80% are developed using Js. For example, map websites. Therefore, JS debugging has become very important.
In addition to debugger and breakpoint setting, you can also use some browser Tools for auxiliary debugging. For example, there is a map object on your page, which is assumed to be a maplet. Now you want to test the running effect of its setcenter function, or even the running effect under abnormal parameters, but you do not want to write a test on your webpage, or even if the website is not yours, you do not have the permission to modify the htmlCodeAt this time, you can use external tools to execute JS statements. For example, firebug. Here we will introduce a browser that can help you debug Js. This is the World (window of the world browser). The final version is 2.0.
:
Http://www.ioage.com/download/TheWorld2.0_chs.exe
After the download is complete, open your browser and you will be directed to the home page of the Software Website. Click "ins" to install all the plug-ins you like and restart your browser.
As you can see, there is an icon under the browser. Click the yellow icon.

The resource collector is displayed, Which is empty. Click the run button to see a piece of code.

< Script Language = " Javascript " >

</ Script >

Now, enter any JS statements you want to run in the middle. Click Run again after writing.
Another plug-in, powerband, can help you understand the structure of the web page and view the HTML code of each element.

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.