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

  1. 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
    }
  ]
}
  1. Press F5

What I expected

Normal launch

What I got

image

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)

Most upvoted comments

You can also set "debug.javascript.usePreview": false to work around this

cc @connor4312

I have an open chrome on the Mac Os docker. I clicked on it and pressed cmd+Q.

Afterwards vscode could reopen Chrome.