tiangolo / full-stack-fastapi-template

Full stack, modern web application template. Using FastAPI, React, SQLModel, PostgreSQL, Docker, GitHub Actions, automatic HTTPS and more.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Zaubeerer opened this issue · comments

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?