Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Launch chrome debugging #5035

Unanswered
jerpena asked this question in Q&A
Mar 27, 2022 · 4 comments · 2 replies
Discussion options

Has anyone here been able to get this to work? I always get a message saying "We can't launch a browser in debug mode from here. Open this workspace in VS Code on your desktop to enable debugging."

You must be logged in to vote

Replies: 4 comments 2 replies

Comment options

There are a bunch of issues with debugging. I think this happens since code-server runs on the browser, so it can't access it since the client accessing is the browser. Possibly right, but I don't know.

You must be logged in to vote
1 reply
Comment options

Yeah, not sure on this either. Does it work in Codespaces? There may be something we need to patch potentially to get it working.

Comment options

Any updates on this? It would be awesome to be able to debug JS web apps from codespaces.

You must be logged in to vote
1 reply
Comment options

No updates, I think this would need to be implemented upstream in https://github.com/microsoft/vscode

Comment options

Has anyone here been able to get this to work? I always get a message saying "We can't launch a browser in debug mode from here. Open this workspace in VS Code on your desktop to enable debugging."

same here

You must be logged in to vote
0 replies
Comment options

I suspect this might be possible if we

  1. Manually launch Chrome in debug mode chrome.exe --remote-debugging-port=9222 --user-data-dir=remote-debug-profile
  2. Manually port forward 9222 to the server running code-server and expose it as 9222
  3. Run debugger with Attach to browser
 {
 "type": "chrome",
 "request": "attach",
 "name": "Attach to browser",
 "port": 9222
 },
You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

AltStyle によって変換されたページ (->オリジナル) /