I'm having some issues getting the "auto attach debugger" feature of Microsoft Edge Developer Tools for Visual Studio Code to work.
I generated a fresh angular project (ng new) and added this launch.json config
{
"configurations": [
// this one works. It opens a chrome window and hits my break points.
{
"type": "pwa-chrome", // this is not "Microsoft Edge Developer Tools for Visual Studio Code"
"name": "http://localhost:4200/",
"request": "launch",
"url": "http://localhost:4200/"
},
// this one does not work. It opens a headless edge window, but it does not hit my break points.
{
"type": "vscode-edge-devtools.debug", // this is "Microsoft Edge Developer Tools for Visual Studio Code"
"request": "launch",
"name": "Launch Microsoft Edge and open the Edge DevTools",
"url": "http://localhost:4200/",
"webRoot": "${workspaceFolder}"
}
]
}
I have these extension settings
{
"vscode-edge-devtools.enableNetwork": true,
"vscode-edge-devtools.headless": true,
"vscode-edge-devtools.defaultUrl": "http://localhost:4200/"
}
I tried fiddling around with sourceMapPathOverrides but I can't seem to get it right.
The webpack:/// content looks like this
- VSCode Version: 1.53.2 (system setup)
- Microsoft Edge Version: 88.0.705.68 (Official build) (64-bit)
- Microsoft Edge Tools for VS Code (ms-edgedevtools.vscode-edge-devtools) Version: 1.1.3
- Debugger for Microsoft Edge (msjsdiag.debugger-for-edge) Version: 1.0.15

