How do I prevent Chrome developer tools from closing when the current browser window closes?

AlistairH picture AlistairH · Jun 21, 2012 · Viewed 35.2k times · Source

I'm trying to use the chrome developer tools to debug an issue I'm having with Twitter oauth.

When the oauth window appears, I open the developer tools to monitor the requests - but as soon as the oauth window closes the developer tools window is also closed. I'd like to be able to keep the developer tools window open so that I can inspect the requests made.

Is this possible?

Answer

jfhfhf839 picture jfhfhf839 · Feb 23, 2015

Not a perfect solution, but you can add breakpoints on the events Window.close and unload by turning on the checkboxes at:

Developer tools -> "Sources" tab -> Event Listener Breakpoints -> Window -> close

And

Event Listener Breakpoints -> Load -> unload

Try to mark both and see which one works best for you