-
Notifications
You must be signed in to change notification settings - Fork 6.3k
-
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."
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 4 comments 2 replies
-
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.
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
-
Yeah, not sure on this either. Does it work in Codespaces? There may be something we need to patch potentially to get it working.
Beta Was this translation helpful? Give feedback.
All reactions
-
Any updates on this? It would be awesome to be able to debug JS web apps from codespaces.
Beta Was this translation helpful? Give feedback.
All reactions
-
No updates, I think this would need to be implemented upstream in https://github.com/microsoft/vscode
Beta Was this translation helpful? Give feedback.
All reactions
-
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
Beta Was this translation helpful? Give feedback.
All reactions
-
I suspect this might be possible if we
- Manually launch Chrome in debug mode
chrome.exe --remote-debugging-port=9222 --user-data-dir=remote-debug-profile
- Manually port forward 9222 to the server running code-server and expose it as 9222
- Run debugger with
Attach to browser
{
"type": "chrome",
"request": "attach",
"name": "Attach to browser",
"port": 9222
},
Beta Was this translation helpful? Give feedback.