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?