如何使用chrome的网络调试器重定向 [英] How to use chrome's network debugger with redirects

查看:550
本文介绍了如何使用chrome的网络调试器重定向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

chrome网络调试器让我可以浏览为页面加载的所有HTTP资源。但是,只要加载了新的顶级HTML页面,它就会清除列表。这使得调试由于某种原因(运行脚本或300响应)而自动重新加载的页面变得非常困难。



我可以告诉chrome不要在网络调试器被清除时一个新的顶级页面被加载?或者我可以回去看看上一页的网络资源吗?



或者,我可以以某种方式强制浏览器在加载新页面前暂停,当我不控制页面时我试图调试那是做重定向?它是openid舞蹈的一部分,它会出错,所以SSL和证书的结合使得使用命令行工具进行调试非常困难。



或者可以用firebug做我的想要吗?

解决方案

自v32以来,这已经发生了变化,这要归功于@Daniel Alexiuc& @Thanatos评论。






当前(≥v32) p>

在DevTools网络选项卡的顶部,有一个复选框用于打开保留日志功能。如果选中,网页日志将在页面加载时保留。





左侧的小红点现在可以完全打开和关闭网络日志记录功能。






旧版本 Chrome浏览器版本(这里是v21),在网络选项卡的页脚中有一个小小的可点击红点。

.stack.imgur.com/tSUP0.pngalt =Chrome v22 DevTools网络标签页:保留导航日志>



如果将鼠标悬停在它上面,它会告诉当它被激活时,它将保留导航日志。它有承诺。


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.

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.

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

这篇关于如何使用chrome的网络调试器重定向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆