Use of Google Developer Tools-newcomer

Source: Internet
Author: User
Tags google developer tools

Usage of Google Developer Tools

1. Independent window

 

2. Elements

View and edit elements on the page, including HTML and CSS

Scenario 1: view the Promotion Code

 

Scenario 2: view the attributes of an element, such as nofollow

 

Scenario 3: Ctrl + F: Write the element's XPath path in the search box. If the elements element line is selected, the path is correctly written. The following example shows how to locate the post sourcing request button:

 

3. Network

Analyze website network requests

 

Double-click a file to view the details page (such as the requested IP address, URL, method, and status code of the Request result)

 

Practical scenarios: for example, if the RFQ page is released and attachments are uploaded and remain buffered, you can view the Request status through the network. If there is any problem, click initiator to go to the specific code page, you can locate file/method errors during testing to help developers solve problems quickly.

 

4. Sources

Check the running script. The code is usually debugged at sources.

On the script code number, click "add breakpoint", refresh the webpage, and run the program to the breakpoint to view the debugging result.

5. Timeline

Specifies the JS execution time, page element rendering time, and click record at the bottom of the page to start recording and executing the content.

6. Profiles

Mainly for performance optimization, view CPU execution time and memory usage

7. Resources

View the resources loaded by the request, such as CSS, JS, cookies, and session storage.

8. Audits

Optimize the front-end page to accelerate the loading speed of the webpage. Select the condition and click Run to start the Analysis page and get the analysis result.

9. Console

It refers to the Javascript console.

A. Check the error message.

 

Click the file next to the red letter error to locate the code

B. View functions and methods through APIS

 

C. Compile scripts

 

 

Use of Google Developer Tools-newcomer

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.