[ Web Proxy ]
URL:
Viewing: https://developer.chrome.com/blog/new-in-devtools-125#lighthouse [Back]  [Original]

What's new in DevTools, Chrome 125  |  Blog  |  Chrome for Developers Skip to main content
Chrome for Developers [Chrome for Developers]

What's new in DevTools, Chrome 125 Stay organized with collections Save and categorize content based on your preferences.

Sofia Emelianova [Sofia Emelianova]
Sofia Emelianova

Note: Interested in helping improve DevTools? Sign up to participate in Google User Research here.

Understand errors and warnings in the Console better with Gemini

This Chrome version brings generative AI capabilities to the DevTools Console, aimed to give you a better understanding of the errors and warnings you encounter.

To get an AI-generated explanation of an error or warning, click the Lightbulb spark. [Lightbulb spark.] Understand this error (warning) button next to the message in the Console and follow instructions.

The AI-generated explanation of an error. [The AI-generated explanation of an error.]

Note: To use this feature, make sure you meet the Requirements. You may still not have access to this feature right away because of a phased rollout.

For more information, see Understand errors and warnings better with AI.

@position-try rules support in Elements > Styles

To help you debug CSS anchor positioning, the Elements > Styles tab now supports @position-try CSS rules. The tab resolves position-try-options values and links each option to a dedicated @position-try --name section.

The before and after supporting the @position-try CSS rules. [The before and after supporting the @position-try CSS rules.]

To learn more, see Introducing the CSS anchor positioning API.

Chromium issue: 40279608.

Sources panel improvements

This version brings several improvements to the Sources panel.

Configure automatic pretty-printing and bracket closing

You can now turn on or off the automatic pretty-printing and bracket closing for the Editor in Sources. Pretty-printing makes minified files readable. Bracket closing automatically adds a closing bracket () or }) or tag (>) when you type an opening one.

To configure the relevant behaviour, check or clear the new Auto closing brackets and Automatically pretty print minified sources options in Settings > Preferences > Sources.

The before and after adding new settings for automatic pretty-printing and bracket closing. [The before and after adding new settings for automatic pretty-printing and bracket closing.]

Chromium issues: 40865010, 324314570.

Handled rejected promises are recognized as caught

The Sources panel now correctly recognizes rejected promises as caught if you handled them with .catch() or two-argument .then().

In other words, when Sources > Breakpoints > Pause on uncaught exceptions is turned on, the debugger won't pause on statements similar to the following:

Promise.reject(new Error('fail')).catch((e)=>console.log('caught'));

The before and after recognizing caught rejections. [The before and after recognizing caught rejections.]

Chromium issue: 40283993.

Error causes in the Console

The Console now shows you chains of error causes in the stack trace, if any.

To make debugging easier, you can specify error causes when catching and rethrowing errors. As the Console walks up the cause chain, it prints each error stack with a Caused by: prefix, so you can still see the original error.

The before and after printing stack traces with `Caused by` prefixes. [The before and after printing stack traces with `Caused by` prefixes.]

Chromium issue: 40182832.

Network panel improvements

This version brings several improvements to the Network panel.

Inspect Early Hints headers

The Early Hints headers get a dedicated section in the request's Headers tab of the Network panel. Previously, you could find the relevant headers in the Response Headers section.

Early Hints is an HTTP status code (103 Early Hints) used to send a preliminary HTTP response ahead of a final response. This allows a server to send hints to the browser about critical sub-resources (for example, a style sheet or critical JavaScript) or origins that will be likely used by the page, while the server is busy generating the main resource.

The before and after adding a dedicated section for Early Hints. [The before and after adding a dedicated section for Early Hints.]

For more information, see Faster page loads using server think-time with Early Hints.

Chromium issue: 40222701.

Hide the Waterfall column

You can now hide the Waterfall column in the Network panel similar to how you can hide other columns. Right-click any column name and clear the Waterfall checkbox in the drop-down menu.

The before and after adding the option to hide the Waterfall column. [The before and after adding the option to hide the Waterfall column.]

Chromium issue: 40574989.

Performance panel improvements

This version brings several improvements to the Performance panel.

Capture CSS selector statistics

The Performance panel gets a new setting to let you capture CSS selector statistics for long-running Recalculate Style events.

To see the statistics, select a Recalculate Style event and open the new Selector Stats tab. The tab shows you information on elapsed time, match attempts and count, and percent of slow-path non-matches for each selector.

The before and after adding selector statistics. [The before and after adding selector statistics.]

Note: Enabling CSS selector statistics may slow down report generation.

Chromium issue: 324282954.

Change order and hide tracks

The Performance panel gets a new configuration mode that lets you change the order of tracks and hide them.

To enter the configuration mode, click the Edit button on the left of the track name. Then click up or down to move the track around or click hide. Click the Check button to the right of the track name when you are done.

The next version, Chrome 126, will bring more improvements to this UI.

Chromium issue: 311439339.

Ignore retainers in the Memory panel

You can now ignore retainers in heap snapshots you capture with the Memory panel.

To ignore a retainer, select an object and, in the Retainer section, right-click a retainer and select Ignore this retainer from the drop-down menu. Ignored retainers are marked withignored value in the Distance column. To stop ignoring, click Restore ignored retainers in the action bar at the top.

The before and after adding an option to ignore retainers. [The before and after adding an option to ignore retainers.]

Additionally, heap snapshots now support a bigger number (hundreds of millions) of containment edges and nodes (332350576).

Chromium issue: 327337527.

Lighthouse 11.7.1

The Lighthouse panel now runs Lighthouse 11.7.1. See the full list of changes.

Among notable changes is the deprecated support for Publisher Ads plugin, which became outdated in this version.

The before and after adding removing the Publisher Ads plugin support. [The before and after adding removing the Publisher Ads plugin support.]

To learn the basics of using the Lighthouse panel in DevTools, see Lighthouse: Optimize website speed.

Chromium issue: 772558.

Miscellaneous highlights

These are some noteworthy fixes and improvements in this release:

Download the preview channels

Consider using the Chrome Canary, Dev, or Beta as your default development browser. These preview channels give you access to the latest DevTools features, let you test cutting-edge web platform APIs, and help you find issues on your site before your users do!

Get in touch with the Chrome DevTools team

Use the following options to discuss the new features, updates, or anything else related to DevTools.

What's new in DevTools

A list of everything that has been covered in the What's new in DevTools series.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024-05-08 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-05-08 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page