Closed layday closed 2 years ago
I'm running into this issue as well, but couldn't see anything that jumped out when running with log at debug. Happy to help troubleshoot, but could use some help getting pointed in the right direction. Chrome/Edge work-out-of-the-box, but like layday mentioned, Firefox doesn't appear to be sending Webpack URLs at all for the vscode debugger to map.
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "firefox",
"request": "launch",
"reAttach": true,
"name": "Launch localhost",
"url": "http://localhost/index.html",
"webRoot": "${workspaceFolder}"
},
{
"type": "pwa-chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}"
}
]
}
This appears to have been an issue with Webpack on Node 17 where requests for source maps were refused by the server. Starting ng serve
with --host=127.0.0.1
fixed it for me. It would be helpful if the extension reported failing requests.
Thanks again for the debugger extension - I'll close this since it isn't an issue with the extension.
Thanks for this extension. I've tried using it with an Angular app compiled with Webpack. All of my hosts appear under "loaded scripts" apart from Webpack's. My configuration is:
Debug view in Firefox:
Loaded scripts in Code:
The extension is also unable to map Angular modules using the path wizard. Looking at the log, it does not appear to receive Webpack URLs from Firefox at all (!), so there's nothing for it to map. Would you know why that might be happening?