Quantcast
Channel: Updates
Viewing all articles
Browse latest Browse all 599

What's New In DevTools (Chrome 60)

$
0
0

What's New In DevTools (Chrome 60)

Welcome! Here's what's new in DevTools in Chrome 60. You can check what version of Chrome you're running at chrome://version.

New features

New Audits panel, powered by Lighthouse

The Audits panel is now powered by Lighthouse. Lighthouse provides a comprehensive set of tests for measuring the quality of your web pages.

A Lighthouse report
Figure 1. A Lighthouse report

Check out the DevTools talk from Google I/O '17 below to learn more. Lighthouse is discussed at 32:30.

To audit a page:

  1. Click the Audits tab.
  2. Click Perform an audit.
  3. Click Run audit. Lighthouse sets up DevTools to emulate a mobile device, runs a bunch of tests against the page, and then displays the results in the Audits panel.

The scores at the top for Progressive Web App, Performance, Accessibility, and Best Practices are your aggregate scores for each of those categories. The rest of the report is a breakdown of each of the tests that determined your scores. Improve the quality of your web page by fixing the failing tests.

Lighthouse is an open-source project. To learn lots more about how it works and how to contribute to it, check out the Lighthouse talk from Google I/O '17 below.

Third-party badges

Use third-party badges to get more insight into the entities that are making network requests on a page and logging to the Console.

Hovering over a third-party badge in the Network panel
Figure 2. Hovering over a third-party badge in the Network panel
Hovering over a third-party badge in the Console
Figure 3. Hovering over a third-party badge in the Console

To enable third-party badges:

  1. Open the Command Menu.
  2. Run the Show third party badges command.

Use the Group by product option in the Call Tree and Bottom-Up tabs to group performance recording activity by the third-party entities that caused the activities.

Grouping by product in the Bottom-Up tab
Figure 4. Grouping by product in the Bottom-Up tab

A new keyboard shortcut for Continue to Here

When stepping through code, hold Command (Mac) or Control (Windows, Linux) and then click to continue to that line of code.

Continue to Here
Figure 5. Continue To Here

Changes

More informative object previews in the Console

Previously, when you logged or evaluated an object in the Console, the Console would only display Object, which is not particularly helpful. Now, the Console provides more information about the contents of the object.

How the Console used to preview objects
Figure 6. How the Console used to preview objects
How the Console now previews objects
Figure 7. How the Console now previews objects

More informative context selection menu in the Console

The Console's Context Selection menu now provides more information about available contexts.

  • The title describes what each item is.
  • The subtitle below the title describes the domain where the item came from.
  • Hover over an iframe context to highlight it in the viewport.
The new Context Selection menu
Figure 8. Hovering over an iframe in the new Context Selection menu highlights it in the viewport

Real-time updates in the Coverage tab

When recording code coverage in Chrome 59, the Coverage tab would just display Recording, with no visibility into what code was being used. Now, the Coverage tab shows you in real-time what code is being used.

Loading and interacting with a page using the old Coverage tab
Figure 9. Loading and interacting with a page using the old Coverage tab
Loading and interacting with a page using the new Coverage tab
Figure 10. Loading and interacting with a page using the new Coverage tab

Simpler network throttling options

The network throttling menus in the Network and Performance panels have been simplified to include only three options: Offline, Slow 3G, which is common in places like India, and Fast 3G, which is common in places like the United States.

The new network throttling options
Figure 11. The new network throttling options

The throttling options have been tweaked to match other, kernel-level throttling tools. DevTools no longer shows the latency, download, and upload metrics next to each option, because those values were misleading. The goal is to match the true experience of each option.

Async stacks on by default

The Async checkbox has been removed from the Sources panel. Async stack traces are now on by default. In the past, this option was opt-in, because of performance overhead. The overhead is now minimal enough to enable the feature by default. If you prefer to have async stack traces disabled, you can turn them off in Settings or by running the Do not capture async stack traces command in the Command Menu.

Feedback

The best place to discuss any of the features or changes you see here is the google-chrome-developer-tools@googlegroups.com mailing list.

That's all for what's new in DevTools in Chrome 60. See you in 6 weeks!


Viewing all articles
Browse latest Browse all 599

Trending Articles