Chrome Dev Tools is it possible to keep open even

2019-02-04 07:03发布

问题:

I need to see the network traffic for a particular site of which I have no control. The problem is that the site at one point triggers a pop-up which automatically closes when a particular upload event is completed.

The HTTP requests I need to see, are only triggered at the moment of close which is when the upload completes. As soon as the window closes, so does the Dev Tools window.

Is there any way to force it to stay open? What about IE and Firefox?

Other tools that are not browser specific are not giving me the data I need. I know Chrome will - if only it hung around long enough for me to see it.

回答1:

You could set an window close event breakpoint. This way the debugger stops the widnow (popup) from closing.

devtools -> scripts (or sources) -> event listener breakpoints -> Window -> close

Link to Chromium rfc



回答2:

I use this chrome extension. It has a URL sniffer, which you can open in any window and it'll log all HTTP requests for you.