How to use chrome's network debugger with redirects

The chrome network debugger gives me a great view of all the HTTP resources loaded for a page. But it clears the list whenever a new top-level HTML page is loaded. This makes it very difficult to debug pages that automatically reload for one reason or another (running script or 300 responses).

Can I tell chrome not to clear the Network debugger when a new top-level page is loaded? Or can I go back and look at the previous page's network resources?

Or can I somehow force chrome to pause before loading a new page when I don't control the page I'm trying to debug that's doing the redirecting? It's part of an openid dance that's going awry, so the combination of SSL and credentials makes it extremely difficult to debug with command-line tools.

Or can firebug do what I want?


This has been changed since v32, thanks to @Daniel Alexiuc & @Thanatos for their comments.


Current (≥ v32)

At the top of the "Network" tab of DevTools, there's a checkbox to switch on the "Preserve log" functionality. If it is checked, the network log is preserved on page load.

Chrome v33 DevTools网络选项卡:保留日志

The little red dot on the left now has the purpose to switch network logging on and off completely.


Older versions

In older versions of Chrome (v21 here), there's a little, clickable red dot in the footer of the "Network" tab.

Chrome v22 DevTools网络选项卡:保留导航日志

If you hover over it, it will tell you, that it will "Preserve Log Upon Navigation" when it is activated. It holds the promise.


I don't know of a way to force Chrome to not clear the Network debugger, but this might accomplish what you're looking for:

  • Open the js console
  • window.addEventListener("beforeunload", function() { debugger; }, false)
  • This will pause chrome before loading the new page by hitting a breakpoint.


    Just update of @bfncs answer

    I think around Chrome 43 the behavior was changed a little. You still need to enable Preserve log to see, but now redirect shown under Other tab, when loaded document is shown under Doc.

    This always confuse me, because I have a lot of networks requests and filter it by type XHR, Doc, JS etc. But in case of redirect the Doc tab is empty, so I have to guess.

    链接地址: http://www.djcxy.com/p/20486.html

    上一篇: 使用Chrome打印到PDF时使用面对字体

    下一篇: 如何使用chrome的网络调试器重定向