-
Notifications
You must be signed in to change notification settings - Fork 29.3k
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
ECONNREFUSED debugging browsers in WSL2 #120227
Comments
Sandbox is not enabled currently. It will probably not be enabled until end of this year, see #92164 |
Hm, I don't hit this on Windows or OSX, but don't have a WSL with X forwarding setup on hand to test your scenario. For a sanity check, do you see anything in the debug console when this happens? |
No, it's empty. 😢 Edit: Actually...
|
This seems to affect all remote browser debugging in WSL (see linked issue), marking as candidate for recovery |
For other users running into this: the fix will be available in the nightly and on Insiders after this evening. |
Thanks @connor4312! I can confirm that switching to nightly just now fixed it 🎉. You deserve a medal 🥇 |
it fixed it for me as well. Thanks @connor4312 one thing to note, it was giving me a connection error still with my launch.json using legacy attach for chrome which was working before. I changed it to the following and everything works as expected again |
This will be in the upcoming recovery build |
@joaomoreno please verify if you can 🙂 |
This fix works inconsistently for me. I have to try a couple of times to get the debugger to attach to Chrome properly, it seems very random. This is my launch.json:
I don't see anything special in the Extension Host console. Is there any other info I can provide? |
Can you share a gif of what you see? https://gifcap.dev/ is helpful |
Sure thing. When it does work, the url in Chrome switches from about:blank to http://localhost:4200 within a second or so. Otherwise, the above is what I get. |
Hm, okay. I don't get that from here and it seems like the fix worked for others... Can you add |
I experience the same issue, but it just never works, I always have the error message. I can't unzip the resulting trace file, but if it might be useful... |
I experience the same issue, but it just never works, I always have the error message. |
@Olivloliv you are not running the version of the debugger with the fix, please see here #120227 (comment) @cool-delete please confirm that you're running the correct version of the debugger |
yes thanks this fix my problem |
Oups my bad, it does fix it as well ! thanks |
@connor4312 Please re-open as the new update broke this again (insider 1.56.0) javascript debugger (v2021.4.717) |
reverting to javascript debugger 1.56.0, this version is working fine. |
@Agamennon please capture a trace log by setting |
Still having this problem. Using Insiders 1.56.0, js-debug nightly 2021.4.2017 and Ubuntu 20.04.2 on WSL2. Tried both launch and attach. Tried various ports. I can't unzip the verbose debug log because "Unexpected end of file" with gzip. I'll attach anyways. If there's a way to print a verbose log without compression I will do so. launch.json for this attempt: |
@MikeMcDonald83 are there any errors if you open console in the |
@connor4312 Yes. This was from 2 attempts using the same settings as before. Edit2: |
vscode-debugadapter-db300a49.json.gz
I hope this is enough information, |
Unfortunately Javascript debugger 1.56.1 broke this again, nightly is also broken, there is no working javascript debugger now working with WSL , last working version was 1.56.0, |
@Agamennon please open an issue here with the instructions on the template https://github.com/microsoft/vscode-js-debug/issues |
fyi (for others who commented on this thread) I believe I've found the issue, see microsoft/vscode-js-debug#982 (comment) |
In our selfhosting setup, pressing F5 will yield this notification after about a minute of launching:
When inspecting the toolbar, I see the shared process is missing:
@bpasero Could it be related to the introduction of the sandbox?
The text was updated successfully, but these errors were encountered: