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 launch Chrome when working with a remote container

See original GitHub issue

Describe the bug When trying to launch Chrome using pwa-chrome while attached to a remote container, the extension is unable to launch Chrome and I get to see this: image

To Reproduce Steps to reproduce the behavior:

  1. Launch a workspace in a remote container
  2. Launch the following default launch config:
    {
        "name": "Launch Chrome",
        "request": "launch",
        "type": "pwa-chrome",
        "url": "http://localhost:3000",
        "webRoot": "${workspaceFolder}"
    }

I have tried this as part of a .code-workspace as well as launch.json, neither work.

Log File vscode-debugadapter-2ff4ba31.json.gz

VS Code Version: 1.52.1 JavaScript Debugger (Nightly) Version: v2021.1.817 JavaScript Debugger Companion Extension Version: v1.0.8 Remote -Containers Version: v0.154.2

Additional context OS: Ubuntu 20.10 When opening the same workspace locally, launching Chrome works just fine. I have attempted to do this both with and without the nightly version.

The example given is quite bare on purpose. Normally I would have it execute a pre-launch task that spins up a webpack dev-server. The environment is supposed to be able to run on Linux, Windows and Mac and requires a specific version of nodejs, hence the use of a container.

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
connor4312commented, Mar 1, 2021

The fix will be available on Insiders tomorrow, and in stable early next month.

1reaction
nsgundycommented, Feb 15, 2021

Hey, just tested this on Windows today and there the same thing works as expected(same Docker container, same versions of VS Code and extensions as above). So Ubuntu (or Linux) only it seems.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chrome failed to start in docker container using Selenium after ...
(unknown error: DevToolsActivePort file doesn't exist) (The process started from chrome location /opt/google/chrome/chrome is no longer running, ...
Read more >
Fix Chrome if it crashes or won't open - Computer
Windows. Press Ctrl + Alt + Delete. Click Task manager​. Under "Processes," look for "Google Chrome" or "chrome.exe." Click it, then click End...
Read more >
Failed to start --remote-debugging-port in docker container
I am trying to run chrome with remote debugging enabled in a Docker container and I have tried the following things:.
Read more >
Troubleshooting | Container Registry documentation
Artifact Registry is the recommended service for managing container images. ... Permission denied: Unable to create the repository, please check that you ...
Read more >
Introducing Chrome Debugging for VS Code
For now, Chrome needs to be started with remote debugging enabled, and only supports one concurrent connection. This means if you open up ......
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