Unable to attach to Webview2 Process
MRobertEvers opened this issue · 1 comments
MRobertEvers commented
I am unable to debug a Webview2 ('native') application. However, I am able to use the Edge devtools to debug. https://docs.microsoft.com/en-us/microsoft-edge/devtools-guide?source=f12help
With the Edge Devtools, I am able to debug with sourcemap. (See example, I can debug .ts with the Edge Tools)
It seems that I just can't get the debugger to attach.
- VS Code Version: 1.47.1
- Log file (set
"trace": true
in launch config):
--(Attach config) vscode-debugadapter-0.json.gz
--(Launch config) vscode-edge-debug.txt
Steps to reproduce:
I have an application that launches a Webview to http://localhost:4041/
.
I can create a sample repository if needed.
I have tried two configuration. One 'launch' and one 'attach' configuration, however, neither work.
{
"name": "Launch localhost in Microsoft Edge",
"type": "edge",
"request": "launch",
"trace": true,
"url": "http://localhost:4041",
"webRoot": "${workspaceFolder}",
"useWebView": true,
"runtimeExecutable": "${workspaceFolder}/debug/code-sample-client.exe"
},
and
{
"type": "pwa-msedge",
"request": "attach",
"name": "Attach WebView",
"urlFilter": "http://localhost:*/",
"useWebView": true,
"trace": true
},
MRobertEvers commented
I realize that I was using the old EdgeHTML - a version that is not compatible with the extension.