27
votes

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.

3

3 Answers

37
votes

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

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

enter image description here

Link to Chromium rfc

1
votes

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.

0
votes

Run the following code in the console when opening the popup:

window.addEventListener('beforeunload', function (e) {
  debugger;
});