What's New in DevTools (Microsoft Edge 102)

To check out the latest features of Microsoft Edge DevTools and the Microsoft Edge DevTools extension for Microsoft Visual Studio Code and Visual Studio, read these announcements.

To stay up to date and get the latest DevTools features, download an Insiders preview version of Microsoft Edge. Whether you're on Windows, Linux, or macOS, consider using Canary (or another preview channel) as your default development browser. The Beta, Dev, and Canary versions of Microsoft Edge run as separate apps, side-by-side with the stable, released version of Microsoft Edge. See Microsoft Edge Insider Channels.

For the latest announcements, follow the Microsoft Edge team on Twitter. To report a problem with DevTools or ask for a new feature, file an issue in the MicrosoftEdge/DevTools repo.

Tip

The Microsoft Build 2022 conference was on May 24-26. Learn more about new features for memory, performance, and production debugging in DevTools and new capabilities in the web platform for PWAs in the following videos:

Video: Microsoft Edge | What's New in DevTools 102

Thumbnail image for video "What's New in DevTools 102"

DevTools extension: New browser with device and mode emulation and sourcemap support

The Microsoft Edge DevTools extension for Visual Studio Code now has a browser preview that allows you to emulate different devices. Click the new Emulate CSS media features (Emulate CSS media features) button, to preview the current project in different modes, such as Dark, Light, Print, and High Contrast:

DevTools extension: New browser with device and mode emulation and sourcemap support

Click the new Emulate vision deficiencies (The Emulate vision deficiencies button) button to easily test accessibility, such as showing what the webpage looks like with blurred vision or color vision deficiencies.

Other new features include a simpler way to toggle CSS mirroring, which now also supports sourcemaps. This means that you can debug and modify CSS created by Sass, React, and other abstractions live in the browser and see the changes in the source files.

See also:

Save all strings from a heap snapshot to JSON

In Microsoft Edge 102, when taking a heap snapshot in the Memory tool, you can now export all string objects from the snapshot to a JSON file. In the Memory tool, in the Constructor section, click the new Save all to file button next to the (string) entry.

Save all strings from a heap snapshot to JSON

The Memory tool exports a JSON file that contains all of the string objects from the heap snapshot:

Strings from the heap snapshot, in the JSON file

See also:

New filters for retainers in the Memory tool

In previous versions of Microsoft Edge, cycles and internal nodes were displayed in the Retainers section of a heap snapshot. To help simplify the retainer path, in Microsoft Edge 102, the Retainers section in the Memory tool now has new filters to hide cycles and to hide internal nodes in the retainer path.

In the Retainers section, a cycled node is indicated by being grayed out.

In the following image, in the Filter edges dropdown menu, Hide cycled is not selected, so a cycled node (grayed out) is displayed:

In the 'Filter edges' dropdown menu, 'Hide cycled' is not selected

In the following image, in the Filter edges dropdown menu, Hide cycled is selected, so the cycled node is not displayed:

In the 'Filter edges' dropdown menu, 'Hide cycled' is selected

Cycles are nodes that appear at least twice in a retainer path. One appearance of a node is earlier in the retainer path, and other appearances of that node are later in the retainer path. To free up memory, it's most important to remove the occurrence of the node which appears first in the retainer path. The second and potentially subsequent appearances of the node are still displayed in the Retainers section.

Internal nodes are objects that are specific to V8 (the JavaScript engine in Microsoft Edge). Internal nodes are also displayed in the Retainers section.

See also:

  • Hide cycles in Record heap snapshots using the Memory tool ("Heap snapshot" profiling type).

The Inspect element tooltip can now be persisted until you dismiss it

Previously, in the Elements tool, the overlay for the node that you selected only displayed on hover when you used the Inspect tool (Inspect tool icon). The previous design was difficult to use with a screen magnifier or other assistive technologies.

In Microsoft Edge 102, when using the Inspect tool and moving around the rendered webpage, you can keep the current Inspect overlay displayed. Press and hold Ctrl+Alt (Windows, Linux) or Ctrl+Option (macOS) while you move around in the rendered webpage. The existing tooltip and grid color overlay for the Inspect tool remains displayed while you hover over different parts of the rendered webpage:

The Inspect element tooltip

Also, you can now press Ctrl to hide the Inspect tool's overlay while you move the mouse pointer over the rendered webpage.

For the history of this feature in the Chromium open-source project, see Issue 1316208.

See also:

Improved rendering of dropdown menus, buttons, and icons in high-contrast mode

In previous versions of Microsoft Edge, the following items didn't render correctly in high-contrast mode:

  • Dropdown menus in the Issues tool.
  • Buttons in the Detached Elements tool.
  • The Activity Bar in Focus Mode.

In Microsoft Edge 102, these issues have been fixed.

The Issues tool's menus are displayed correctly in high-contrast mode:

Issues tool's menus in high-contrast mode

The Detached Elements tool's UI is displayed correctly in high-contrast mode:

Detached Elements tool in high-contrast mode

The Activity Bar and Quick View panel (when using Focus Mode) are displayed correctly in high-contrast mode:

Activity Bar in Focus Mode

See also:

Learn about experiments in DevTools from Settings

In the Settings > Experiments page, each experiment now has a Help (Help icon) button:

Help icons for Settings > Experiments checkboxes

To get more information about an experimental feature, click the corresponding Help (Help icon) button. The Help button displays the relevant section of the Experimental features in Microsoft Edge DevTools article.

Better layout of Network settings when narrow

In previous versions of Microsoft Edge, opening Network settings with the gear icon in the Network tool would overlap when the DevTools were very narrow:

Overlap of Network settings when narrow

In Microsoft Edge 102, this issue has been fixed. The individual settings now display better in narrow layouts:

Better layout of Network settings when narrow

See also:

Announcements from the Chromium project

Microsoft Edge 102 also includes the following updates from the Chromium project: