question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to attach to browser on macos

See original GitHub issue
  • 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.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:6
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

14reactions
roblourenscommented, Jul 10, 2020

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

cc @connor4312

2reactions
csutorasrcommented, Dec 17, 2020

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

Afterwards vscode could reopen Chrome.

Read more comments on GitHub >

github_iconTop Results From Across the Web

If Safari on Mac doesn't open a webpage or isn't working as ...
Reload the page · Check Safari extensions · Check Safari settings · Test with a private window · Install software updates · Check...
Read more >
Cannot Upload Files via Chrome in macOS: How to Fix
In this comprehensive tutorial, we will show you various methods to fix the issue of being unable to upload files via Chrome in...
Read more >
Can't attach files on any browser - MacRumors Forums
So I'm using a Macbook Air M1 8GB RAM. ... Can't attach files on any browser ... Controlling app access to files in...
Read more >
Some Google Chrome users on M1 Mac unable to upload or ...
... that they are unable to upload or attach files using Google Chrome. ... macOS 12 Monterey is Cupertino's latest version of the...
Read more >
Mac connects to network with no problem but browsers can't ...
connect to working Wi-Fi that worked on other devices · remove all networks from Network > Advanced... tab · run Wireless Diagnostics ·...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found