firefox-devtools / vscode-firefox-debug

VS Code Debug Adapter for Firefox
https://marketplace.visualstudio.com/items?itemName=firefox-devtools.vscode-firefox-debug
MIT License
393 stars 64 forks source link

Firefox and Firefox Developer refusing connection from VS Code debugger #339

Closed nathan-alvarez0925 closed 1 year ago

nathan-alvarez0925 commented 1 year ago

This issue started after the latest updates in both Firefox (v117) and Firefox Developer (v118 beta). Start debugging in VS Code has connection actively refused. No issues before latest updates.

Gabones commented 1 year ago

I'm having the same problem with Firefox (v116) and Firefox Developer (v118), Vscode (v1.82.1), Debugger for Firefox (v2.9.8)

ChrisMSaltire commented 1 year ago

I believe this is the same as #337. I noticed it first just after updating VSCode to 1.82.0.

blm768 commented 1 year ago

This seems to also be related to #306. As a workaround, adding "host": "127.0.0.1" to the entry in launch.json seems to fix the issue.

crazyjat commented 1 year ago

This started happening to me today when I updated to VS Code 1.82.1.

I was able to get around the issue for attach by adding host: "127.0.0.1" as mentioned above, but this does not work for launch configurations.

The issues is that VS Code is now prioritizing ipv6, which doesn't work with firefox debugger. No idea how to fix. Please help!

kayzzen01 commented 1 year ago

The solution I found so far was this command:

netsh interface portproxy add v6tov4 listenaddress=::1 listenport=6080 connectaddress=127.0.0.1 connectport=6080

It works, but I'm not able to use breakpoints. I think this might be another problem. If anyone can do it, I'd be happy to know how 😆

llgarrido commented 1 year ago

This seems to also be related to #306. As a workaround, adding "host": "127.0.0.1" to the entry in launch.json seems to fix the issue.

With this workaround I can see the console messages in VS but the breakpoints still do not work.

maxenko commented 1 year ago

This was happening in VSCode insiders for me a while ago, I guess it made it downstream to stable.

hbenl commented 1 year ago

Fixed in version 2.9.10.

niklasholm commented 1 year ago

I think this can be closed

juliandescottes commented 1 year ago

cc @hbenl should be fixed by your recent release, can we close it?

hbenl commented 1 year ago

@juliandescottes Yes, this is fixed and this issue can be closed, but I don't have the permissions to close it.

janodvarko commented 1 year ago

Done, thank you!