James Livingstone
James Livingstone

Reputation: 51

Can't run debugging in Visual Studio Code on Chrome OS

How do I run a .html file in VS Code on Chrome OS? It sais I need to add the absolute path to browser in a Json file.

Trying to open a .html file in VS Code on Chrome OS

Upvotes: 1

Views: 1040

Answers (1)

Herman Van Der Blom
Herman Van Der Blom

Reputation: 802

U need to install a separate version of Chrome on VS Code then it will work. I just had the same problem and found the solution somewhere hidden on Reddit, but it worked :-)

sudo apt install chromium

Then you can add this to your .vscode/launch.json

  "configurations": [
    {
      "type": "chrome",
      "request": "launch",
      "name": "Launch Chrome against localhost",
      "runtimeExecutable": "/usr/bin/chromium",
      "url": "http://localhost:3000",
      "webRoot": "${workspaceFolder}",
      "smartStep": true
    }
  ]

Upvotes: 1

Related Questions