-
Notifications
You must be signed in to change notification settings - Fork 30.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Web extension host debug adapters not working with codespaces/github.dev #171991
Comments
Hmm. So, this was working a few weeks ago, but not anymore? Unfortunate. Thanks to @thegecko for submitting this issue. I also tried vscode.devhttps://vscode.dev/ This is all I see when I open a folder. The first para is very confusing. Somehow I can enable a debug extension and they are all disabled? |
This is confusing information, especially as debugging works in vscode.dev with a pure browser debugger and adapter such as https://github.com/Arm-software/vscode-embedded-debug |
I'm very keen to get an update on this or at least to confirm if the issue is with the adapter (there may be a certain path format to use), VS Code or codespaces. To that end, I've created instructions and a demo example extension to recreate the issue here: |
A workaround for this issue in microsoft/vscode-mock-debug#93 This isn't a generic fix and I wonder if it should be the responsibility of the debug adapter developer to ensure this works correctly? |
Sorry, I'm not sure how this would have been working before. This seems correct to me. Here's my understanding
So it's kind of a weird case, but I think it's correct. It wouldn't be correct to use the I will close this issue but keep your PR open, I'll look more closely at it later. What a particular DA needs to do likely depends on the situation. |
Does this issue occur when all extensions are disabled?: No - debug adapter required :)
As raised on the GitHub discussions, browser-based debug adapters running in the web extension host have stopped working on Codespaces and github.dev due to the file scheme not being handled correctly.
It's not clear if this a codespace issue or VS Code issue, so have raised the issue in both places.
Steps to Reproduce:
To recreate this, install the mock-debug extension in the web extension host of the VSCode for web flavours and observe the differences:
vscode.dev
The debugger runs in the browser and accesses files using the browser filesystem API. All works as expected.
@vscode/test-web
This runs on a developer's machine and I believe should mimic how codespaces/github.dev work. This works as expected.
github.dev
The debugger fails when setting breakpoints or opening files with:
codespaces
You must ensure mock-debug is installed "Locally" in the web extension host, (by default it is installed in the codespace host and will work correctly) by modifying the settings:
In the web extension host, similar errors are seen as github.dev:
Unfortunately codespaces and github.dev are also the only environments you cannot sideload or debug extensions in, so debugging this issue is extremely challenging.
I've tried reformatting paths prepending
vscode-remote://
and variations on the root fspath but this doesn't work.How should a debug adapter format paths so they can be opened by the UI in codespaces/github.dev when the scheme and authority aren't present?
The text was updated successfully, but these errors were encountered: