vscode-js-debug: Unable to attach to browser on macos
- VS Code Version: 1.47.0
- Log file (set
"trace": true
in launch config): vscode-debugadapter-0.json.gz (I know it’s broken, but I tried twice.) - vscode-chrome-debug version: 4.12.9
What I did
- Save
launch.json
with the following
{
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}",
"userDataDir": "${workspaceFolder}/.vscode/chrome",
"trace": true
}
]
}
- Press F5
What I expected
Normal launch
What I got
Additional context
4.12.8 doesn’t have this problem. It may be a regression.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 6
- Comments: 15 (7 by maintainers)
You can also set
"debug.javascript.usePreview": false
to work around thiscc @connor4312
I have an open chrome on the Mac Os docker. I clicked on it and pressed cmd+Q.
Afterwards vscode could reopen Chrome.