Is it possible to launch Chrome on host (symlinked with distrobox-host-exec) with VSCode inside distrobox? #1376
Unanswered
regunakyle
asked this question in
Q&A
Replies: 1 comment
-
|
I had some issues opening host browser links, but I found a workaround this way: #1984 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I ran
sudo ln -s /usr/bin/distrobox-host-exec /usr/local/bin/google-chromein a Debian 12 distrobox, then I tried to launch Chrome (with VSCode debug config) and failed. VSCode showed a popupUnable to launch browser: "Unable to attach to browser".VSCode can launch Chrome (or Chromium) installed inside the distrobox. Not sure what went wrong in the host symlink case.
Steps to reproduce:
sudo ln -s /usr/bin/distrobox-host-exec /usr/local/bin/google-chrome.vscodefolder, then create alaunch.jsoninside with the following content:{ "version": "0.2.0", "configurations": [ { "name": "Launch Chrome", "request": "launch", "type": "chrome", "url": "http://localhost:5173", "webRoot": "${workspaceFolder}" } ] }"runtimeExecutable": "/usr/bin/chromium"underwebRootinlaunch.jsonif you use Chromium). Now the browser is launched properly.Beta Was this translation helpful? Give feedback.
All reactions