New features and changes coming to DevTools in Chrome 62:
- Support for top-level
awaitoperators in the Console. - Screenshots of a portion of the viewport, and screenshots of specific HTML nodes.
- CSS Grid highlighting.
- A new Console API for querying objects.
- Negative filters and URL filters in the Console.
- HAR imports in the Network panel.
- Previewable cache resources.
- More predictable cache debugging.
- Block-level code coverage.
Top-level await operators in the Console
The Console now supports top-level await operators.
await operators in the
Console
New screenshot workflows
You can now take a screenshot of a portion of the viewport, or of a specific HTML node.
Screenshots of a portion of the viewport
To take a screenshot of a portion of your viewport:
- Click Inspect
or press
Command+Shift+C (Mac) or
Control+Shift+C (Windows, Linux)
to enter Inspect Element Mode. - Hold Command (Mac) or Control (Windows, Linux) and select the portion of the viewport that you want to take a screenshot of.
- Release your mouse. DevTools downloads a screenshot of the portion that you selected.
Screenshots of specific HTML nodes
To take a screenshot of a specific HTML node:
-
Select an element in the Elements panel.
Figure 3. In this example, the goal is to take a screenshot of the blue header that contains the text Tools. Note that this node is already selected in the DOM Tree of the Elements panel -
Open the Command Menu.
-
Start typing
nodeand selectCapture node screenshot. DevTools downloads a screenshot of the selected node.
Figure 4. The result of the Capture node screenshotcommand
CSS Grid highlighting
To view the CSS Grid that's affecting an element, hover over an element
in the DOM Tree of the Elements panel. A dashed border appears around
each of the grid items. This only works when the selected item, or the
parent of the selected item, has display:grid applied to it.
Check out the video below to learn the basics of CSS Grid in less than 2 minutes.
A new API for querying heap objects
Call queryObjects(Constructor) from the Console to return an array
of objects that were created with the specified constructor. For example:
queryObjects(Promise). Returns all Promises.queryObjects(HTMLElement). Returns all HTML elements.queryObjects(foo), wherefoois a function name. Returns all objects that were instantiated vianew foo().
The scope of queryObjects() is the currently-selected execution context
in the Console. See Selecting execution context.
New Console filters
The Console now supports negative and URL filters.
Negative filters
Type -<text> in the Filter box to filter out any Console message
that includes <text>.
one,
two, three, and four to the
Console. two is hidden because -two
is entered in the Filter box
DevTools filters out a message if <text> is found:
- In the message text.
- In the filename from which the message originated.
- In the stack trace text.
The negative filter also works with regular expressions such as -/[4-5]*ms/.
URL filters
Type url:<text> in the Filter box to only show messages that originated
from a script whose URL includes <text>.
The filter uses fuzzy matching. If <text> appears anywhere in the URL,
then DevTools shows the message.
hymn. By hovering
over the script name, you can see that the host name includes this text
HAR imports in the Network panel
Drag and drop a HAR file into the Network panel to import it.
Previewable cache resources in the Application panel
Click a row in a Cache Storage table to see a preview of that resource below the table.
More responsive cache debugging
In Chrome 61 and earlier, debugging caches created with the Cache API is... rough. For example, when a page creates a new cache, you have to manually refresh the page or DevTools in order to see the new cache.
In Chrome 62, the Cache Storage tab now updates in real-time whenever you create, update, or delete a cache or a resource. Watch the video below for an example.
See the Cache Storage Demo to try it out yourself.
Block-level code coverage
In Chrome 61 and earlier, the Coverage tab marks all of the code within a function as used, so long as the function is called.
Starting in Chrome 62, the Coverage tab now tells you which code within a function is called.
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. You can also tweet us at @ChromeDevTools if you're short on time. If you've encountered a certain bug in DevTools, please open an issue.
Discover other DevTools features
Below is a list of everything that's been covered in the What's New In DevTools series.
Chrome 72
- Visualize performance metrics in the Performance panel.
- Highlight text nodes in the DOM Tree.
- Copy the JS path to a DOM node.
- Audits panel updates, including a new audit that detects JS libraries and new keywords for accessing the Audits panel from the Command Menu.
Chrome 71
- Hover over a Live Expression result to highlight a DOM node.
- Store DOM nodes as global variables.
- Initiator and priority information now in HAR imports and exports.
- Access the Command Menu from the Main Menu.
- Picture-in-Picture breakpoints.
Chrome 70
- Live Expressions in the Console.
- Highlight DOM nodes during Eager Evaluation.
- Performance panel optimizations.
- More reliable debugging.
- Enable network throttling from the Command Menu.
- Autocomplete Conditional Breakpoints.
- Break on AudioContext events.
- Debug Node.js apps with ndb.
- (Bonus Tip) Measure real world user interactions with the User Timing API.
Chrome 68
- Eager Evaluation.
- Argument hints.
- Function autocompletion.
- ES2017 keywords.
- Lighthouse 3.0 in the Audits panel.
- BigInt support.
- Adding property paths to the Watch pane.
- "Show timestamps" moved to Settings.
Chrome 67
- Search across all network headers.
- CSS variable value previews.
- Copy as fetch.
- New audits, desktop configuration options, and viewing traces.
- Stop infinite loops.
- User Timing in the Performance tabs.
- JavaScript VM instances clearly listed in the Memory panel.
- Network tab renamed to Page tab.
- Dark theme updates.
- Certificate transparency information in the Security panel.
- Site isolation features in the Performance panel.
Chrome 66
- Blackboxing in the Network panel.
- Auto-adjust zooming in Device Mode.
- Pretty-printing in the Preview and Response tabs.
- Previewing HTML content in the Preview tab.
- Local Overrides support for styles inside of HTML.
- (Bonus Tip) Blackbox framework scripts to make Event Listener Breakpoints more useful.
Chrome 65
- Local Overrides.
- New accessibility tools.
- The Changes tab.
- New SEO and performance audits.
- Multiple recordings in the Performance panel.
- Reliable code stepping with workers in async code.
Chrome 64
Chrome 63
- Multi-client remote debugging support.
- Workspaces 2.0.
- 4 new audits.
- Simulate push notifications with custom data.
- Trigger background sync events with custom tags.
Chrome 62
- Top-level await in the Console.
- New screenshot workflows.
- CSS Grid highlighting.
- A new Console API for querying objects.
- New Console filters.
- HAR imports in the Network panel.
- Previewable cache resources.
- More predictable cache debugging.
- Block-level code coverage.
Chrome 61
- Mobile device throttling simulation.
- View storage usage.
- View when a service worker cached responses.
- Enable the FPS meter from the Command Menu.
- Set mousewheel behavior to zoom or scroll.
- Debugging support for ES6 modules.
Chrome 60
- New Audits panel.
- 3rd-Party Badges.
- A new gesture for Continue To Here.
- Step into async.
- More informative object previews in the Console.
- More informative context selection in the Console.
- Real-time updates in the Coverage tab.
- Simpler network throttling options.
- Async stacks on by default.