david-risney / WebView2Utilities

WebView2Utilities helps you develop and debug Microsoft Edge WebView2 apps.
https://david-risney.github.io/WebView2Utilities/
MIT License
28 stars 7 forks source link
debug webview2 windows

WebView2Utilities

WebView2Utilities help you develop and debug Microsoft Edge WebView2 apps.

Screenshot of WebView2 Utilities

Install & Run

UI details

The app has three tabs for the different main WebView2Utilities features. Each tab has a Refresh button in the tab which you can use to force the information in that to reload.

Host Apps tab

This tab lists the running processes that are using WebView2. By default Discover more Host Apps information (slower) is unchecked and the processes listed will be those with a WebView2 mojo connection. Their HWND trees are examined to try to find their corresponding WebView2 runtime browser process. This may not work in some cases and you can try checking the Discover more checkbox. This will examine all processes, not just those with a WebView2 mojo connection, walk all HWND trees, and examine process parents. This finds more information but is slower.

When selecting a Host App from the list on the left you can see details about the Host App on the right:

There are some buttons below the detail information:

The Watch for changes checkbox is checked by default. When checked WebView2Utilities will check for changes to the set of processes with a WebView2 mojo connection every three seconds and if there is a change, the tab will be refreshed automatically. Otherwise, you can use the Refresh button in the tab title to refresh the list manually.

Runtimes tab

The Runtimes tab lists the found installed WebView2 Runtimes and non-stable Microsoft Edge browser installations. These are paths that you might use with the Fixed Version field in the Overrides tab.

There's a section at the bottom with links to install additional versions of the WebView2 Runtime.

Override tab

This tab helps you set the loader override policy registry keys.

You can use the Add New and Remove buttons to add and remove entries to the list. Additionally the Host app exe has a drop down of running host app executables for your convenience. Similarly, the Fixed Version has a drop down of found WebView Runtimes.

About tab

Application version and helpful links.