I have gone though similar questions and none of the answers help perhaps because the configurations have changed in the latest VS Code or they are not relavant.
I get this error when I try to launch:
Exception has occurred: ReferenceError
ReferenceError: closeDescriptionPopup is not defined
at HTMLParagraphElement.eval (eval at E (chrome-error://chromewebdata/:14:208), <anonymous>:3:21)
at w (chrome-error://chromewebdata/:4622:845)
at L.b (chrome-error://chromewebdata/:4628:231)
at L.e (chrome-error://chromewebdata/:4627:393)
at window.jstProcess (chrome-error://chromewebdata/:4630:800)
at chrome-error://chromewebdata/:4632:56
My launch.json looks like this. Please note that this has become like this due to various trial and errors:
{
"configurations": [
{
"name": "Launch Chrome",
"request": "launch",
"type": "pwa-chrome",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}",
},
{
"name": "Attach by Process ID",
"processId": "${command:PickProcess}",
"request": "attach",
"skipFiles": [
"<node_internals>/**"
],
"type": "pwa-node"
},
{
"name": "Attach to Chrome",
"port": 9222,
"request": "attach",
"type": "pwa-chrome",
"webRoot": "${workspaceFolder}",
}
]
}
I have tried various combination of this as well:
node --inspect-brk --inspect app.js
Sometimes it gives a message the dubugger is running at ws://somehexadisgits but the break points do not hit.
P.S This is my vs code version:
Version: 1.46.1 (user setup)
Commit: cd9ea6488829f560dc949a8b2fb789f3cdc05f5d
Date: 2020-06-17T21:13:20.174Z
Electron: 7.3.1
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Windows_NT x64 10.0.18363

