webview2 / EdgeSharp

Build .NET Win32/WinForms/WPF WebView2 HTML5 Desktop Apps
MIT License
255 stars 30 forks source link

how to Show Dev Tools #3

Closed gaetandezeiraud closed 2 years ago

gaetandezeiraud commented 2 years ago

I have tried to do like in Chromely. But it doesn't seems to be the way to go. Because _config.DevToolsUrl doesn't exist. And I don't find a way to access to the ICoreWebView2 in order to call the OpenDevToolsWindow() in WebView2.

mikeychowy commented 2 years ago

You may found this out already, but how about just pressing f12? https://docs.microsoft.com/en-us/microsoft-edge/webview2/how-to/debug?tabs=devtools

Or maybe use devtools protocol? https://docs.microsoft.com/en-us/microsoft-edge/webview2/how-to/chromium-devtools-protocol