firefox-devtools / vscode-firefox-debug

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

Debugger detaches when new window opens #367

Open devnull69 opened 4 months ago

devnull69 commented 4 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 3 months 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 2 months 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 2 months 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.