Skip to content

How to: Auto open DevTools

David Risney edited this page Nov 23, 2022 · 4 revisions

Many apps will block the end user from opening DevTools. As a developer you can use WebView2Utilities to auto open DevTools when a WebView2 is created.

  1. Select the Overrides tab.
  2. Press the Add New button.
  3. Select the newly added entry in the list.
  4. Change the Host app exe textbox to be the name of the executable file of your host app. For example, OUTLOOK.EXE.
  5. Check the Auto open DevTools checkbox.
  6. If already running, close your host app.
  7. Restart your host app.

When the host app creates a WebView2 it should now automatically open DevTools.

image