JavaScript debugging method under Firefox

Source: Internet
Author: User

In front of the blog to talk about the Internet Explorer JavaScript debugging methods, today nothing to do the Firefox browser (Firefox) JavaScript debugging method also looked at, recorded here, I hope to help.

The code page We used this time is the code that gets the object by the Name property in the document Get Object blog.


Open the page in Firefox browser, in the browser's Open browser toolbar, find the Developer Options button

Click to enter, tick the Developer Toolbar


When you are done, see the tool logo for developer options at the bottom of the browser and close the X logo of the Developer toolbar


Click the Developer Options tool ID to go to the viewer page


The viewer page has tabs such as viewer, console, debugger, style editor, performance, network, etc.

Click the Debugger tab to refresh the page you want to debug, and the Debugger main window will appear with the code you want to debug


Click the Pause button, click the Post button state changes, while the right of the three debugging steps into an operational state, the role of the debugging step can be referred to the browser JavaScript debugging chapter of the explanation. At the same time, break the dot above the line of code. After clicking the breakpoint, the code automatically enters the debug state, cancels the breakpoint, and the code runs directly past.


After breaking the point, refresh the page, the page will stay at the breakpoint, press the F10 button, let the code continue, you will see the variables in the window appears all the variable information.


Click on the hrefs variable, you can see the properties of the collection of objects, all three objects are hyperlinks, and IE browser debugging when you see the same basic.


When you click on the first object, objects such as object properties information will appear after the object expands.

Speaking of which, the JavaScript debugging of Firefox browser is basically finished.


JavaScript debugging method under Firefox

Related Article

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.