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.

WSL2 chrome debug with Error running browser: connect ECONNREFUSED 127.0.0.1:53579

See original GitHub issue

Describe the bug WSL2 chrome debug not possible, browser opens for a moment then closes, with messege:

Error running browser: connect ECONNREFUSED 127.0.0.1:53579

To Reproduce Steps to reproduce the behavior:

  1. On windows 10, install WSL2
  2. Install VSCODE (insiders or stable)
  3. Try debug javascript

launch.json:

  {
        "name": "Launch Chrome",
        "request": "launch",
        "type": "pwa-chrome",
        "url": "http://localhost:5000",
        "trace": true,
        "webRoot": "${workspaceFolder}"
      },

Log File vscode-debugadapter-00e1f992.json

Vscode -> 1.56.0-insider Javacript Debugger (Nightly) v2021.4.2617

Additional context Curiously installing older versions of the javascript debugger also give the same error, even versions 3 months old Also installing older versions of Debugger for chrome and Remote WSL also fails with the same error

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:16 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
umer-ilyascommented, Apr 13, 2022

getting this error on vs code version 1.66.2

3reactions
neilmendozacommented, Dec 1, 2021

The following worked for me. If I open my project using the “Remote - WSL” VS Code extension, e.g. by typing code /my/folder in Linux, I get this issue. However, if I open the folder as a “normal Windows folder” rather than a WSL folder by browsing to \\wsl$ in Explorer I can debug OK.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ECONNREFUSED error with WSL 2 with Chrome Debugger ...
It is a bug of vscode. This issue can be fixed by replacing extensions 'JavaScript Debugger' with 'JavaScript Debugger (Nightly)'.
Read more >
ECONNREFUSED error with WSL 2 with Chrome Debugger ...
HTML : ECONNREFUSED error with WSL 2 with Chrome Debugger on VSCode [ Beautify Your Computer ... Your browser can't play this video....
Read more >
WSL2 Node interpreter: ECONNREFUSED when debugging ...
try debugging the attached project (located on Windows) - debugger fails with "Error in debuggerConnector: connect ECONNREFUSED " error:.
Read more >
Having some issues with Edge. Would like to ask a couple ...
Upon choosing a random windows, debugging fails with error message "Cannot connect to the target: connect ECONNREFUSED 127.0.0.1:9222" Why ...
Read more >
Error: connect ECONNREFUSED 127.0.0.1:443 - Postman
I got the following error: Error: connect ECONNREFUSED 127.0.0.1:443 ... signed certificate using any installed browser (Chrome, Firefox even…
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