How to use the Firefox debugger command for JavaScript

Source: Internet
Author: User

Install Firebug First, search for installation in Firefox extensions.
Then, in the page, enable the script in Firebug:

Then add the debugger command in some places on the page, such as the following page code:

<!DOCTYPE HTML><HTML><Head><MetaCharSet= "Utf-8" /><title>JS Popup New Window</title><Scripttype= "Text/javascript">    functionopen_new (obj) {Debugger; (Obj.href,'Search','width=400,height=300,left=500,top=500,scrollbars,resizable'); }</Script></Head><Body>    <ahref= "Http://"onclick= "open_new (this); return false;">go to Baidu to search! </a></Body></HTML>

When the mouse clicks the link, the Open_new () function is executed, and the function contains the debugger command, so it is interrupted in this place. You can stop to see the values of some variables, or choose to continue execution.

How to use the Firefox debugger command for JavaScript

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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: and provide relevant evidence. A staff member will contact you within 5 working days.