Web browser debugging

Source: Internet
Author: User
Tags event listener

First, Chrome browser

debugging of CSS and HTML

1.ctrl+shift+c to select ELEMENT nodes on the page

2. After selecting the node, you can edit the HTML directly F2

3. Add class name feature, new class name style feature

4. Hide Element function

JS Debug

operate on the sources page

<1> execution after a breakpoint includes

1. Do not enter the next step inside the function

2. Go to the next step inside the function

3. Jump out of the current function

4. Do not activate breakpoint/Activate breakpoint, can reduce breakpoint by hitting the OPT, or right-click to delete breakpoint

<2> Printing Exceptions

Click, and choose to pause in the abnormal location, JS will be in the abnormal position to stop execution and print errors

If you do not choose to pause at an unusual location, the execution will continue, but the error will be printed

<3>ctrl+shift+f Find in all Files

<4> click on the corresponding JS file {} Can format the compressed JS

03 Debugging of event Monitoring

Select the monitored element, open the sources option to the right of the event Listener breakpoints, where Mouse has a series of events such as Click, when the trigger event when the breakpoint takes effect

Web browser debugging

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.