怎么看未决的Chrome浏览器的AJAX请求 [英] How to see pending AJAX requests with Chrome

查看:654
本文介绍了怎么看未决的Chrome浏览器的AJAX请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我喜欢萤火虫在Firefox的特点是,它显示了正在进行的AJAX请求(他们完成之前)。铬,但是,将不显示的请求,直到完成。有没有办法看到挂起(中)与Chrome开发工具网络请求?我想尽快找出那些造成延误的任何AJAX请求越好。在某些情况下错误请求可能需要15秒或30秒,它没有任何意义等那么久就知道是怎么回事。

A feature I like about Firebug in Firefox is that it shows AJAX requests in progress (before they finish). Chrome, however, won't show a request until it completes. Is there a way to see pending (in progress) network requests with Chrome developer tools? I want to identify as soon as possible any AJAX requests that are causing delays. In some scenarios a bad request may take 15 or 30 seconds and it does not make sense to wait that long to know what is going on.

请注意:我可以看到网络请求。我的问题的不是的怎么看网络请求。

Please note: I can see the network requests. My question is not how to see network requests.

编辑:我要纠正我上面说的Chrome声明将不会显示挂起的请求。它确实给他们。具体问题是,挂起的Ajax请求没有在网络 - 展示> XHR面板;他们只表明他们在那里完成的时候。该网络 - >所有面板确实显示挂起XHR请求。

I must correct my statement above that Chrome won't show pending requests. It does show them. The specific problem is that pending ajax requests do not show in the Network->XHR panel; they only show there when they are finished. The Network->All panel does show the pending XHR requests.

推荐答案

preSS过滤器按钮,然后键入状态code:0:

Press the filter button, and type StatusCode:0:

看起来它也包括一些其他的东西,如数据的URL,但它应该是足够了。

Looks like it also includes a few other things like data urls, but it should be good enough.

更新2015年6月23日:该语法现在状态 - code:0,而不是状态code:0。

Update 6/23/2015: the syntax is now "status-code:0", not "StatusCode:0".

这篇关于怎么看未决的Chrome浏览器的AJAX请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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