firefox-devtools / vscode-firefox-debug

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

Debugger detaches when new window opens #367

Open devnull69 opened 2 months ago

devnull69 commented 2 months ago

I've successfully setup Firefox debugging in VSCode ... generally speaking. But whenever my app opens up a new window, the debugger seems to be detached from it. Only breakpoints of the original / main window work, the new window (even though showing in debugging mode) doesn't stop on breakpoints.

Is this expected behavior? Any setting/workaround for this?

AnrDaemon commented 1 month ago

Having same issue even in main window, breakpoints highlight as active, but no stop happens, the code fall straight to the xdebug.

AnrDaemon commented 1 week ago

News? It's impossible to debug application, when debugger doesn't budge.

Also, what it means that I should specify URL if I specified a webroot? And then it just outright ignores any pages other than the specified URL? How am I supposed to work?

AnrDaemon commented 1 week ago

It's even worse. My application uses custom interlinks to refer to in-app entities. A simple el.dispatchEvent(new PointerEvent('click')) on an element with such link will successfully send the debug adapter into an infinite wait state, effectively decommissioning it.