Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用新发布的WebView2,是否可以从代码(WinForms)打开DevTools?
我想在 Javascript 错误上自动显示 DevTools(控制台)。
只需调用 ICoreWebView2 接口的方法 OpenDevToolsWindow() 即可。
https://docs.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2?view=webview2-1.0.664.37#opendevtoolswindow