I opened the Developer Tools on a separate window for FireFox's pop-up window. The problem is that that pop-up window automatically closes by JavaScript after form submission and I cannot disable JavaScript itself because it needs JavaScript to submit the form.
I searched for a way to disable automatic closing of the Developer Tools on window closing, and I found this but it was for Chrome. Typing window.addEventListener('unload', function() { debugger; })
on the Console did not work. I could not find Developer tools -> "Sources" tab -> Event Listener Breakpoints -> Window -> close
or Event Listener Breakpoints -> Load -> unload
. The Event Listener Breakpoints panel has neither close
nor unload
(I typed them in the "Filter by event type").
How can I prevent Developer Tools's separate window from closing?
The unload
and beforeunload
events obviously got removed from the list of event listener breakpoints in Firefox 69 due to causing bugs within the Debugger panel. See https://bugzil.la/1569775 for more info.
So it seems there is currently (as of Firefox 72) no way to halt the script execution on those events and you have to wait until the aforementioned bug is fixed.