Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug Launch Configuration for "Debug Frontend: (...)" does not work on WSL #729

Open
Zaubeerer opened this issue Mar 15, 2024 · 0 comments

Comments

@Zaubeerer
Copy link

I installed chrome on WSL via sudo apt install --fix-missing ./google-chrome-stable_current_amd64.deb.

However I got the following error:

Unable to find chrome version *. Available auto-discovered versions are: []. You can set the "runtimeExecutable" in your launch.json to one of these, or provide an absolute path to the browser executable.

I then added runtimeExecutable, resulting in the following launch config:

  {
      "type": "chrome",
      "request": "launch",
      "name": "Debug Frontend: Launch Chrome against http://localhost:5173",
      "url": "http://localhost:5173/*",
      "webRoot": "${workspaceFolder}/frontend",
      "runtimeExecutable": "/usr/bin/google-chrome"
  },

However, I still get the following error:

Error running browser: spawn /usr/bin/google-chrome ENOENT

Executing google-chrome from terminal works fine.

Did anyone already encounter and solve this?

I guess this is rather a VS Code / extension issue, any hints where to better create this bug report issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant