在Firefox中,我使用Firebug,它允许我查看我的ajax调用正在发出的每个http请求。我已经把我的开发切换到Chrome,我喜欢它到目前为止。然而,我唯一的不满是开发人员工具似乎不允许您查看每个ajax请求。我曾经遇到过这样的情况,资源面板显示了对同一资源的多个请求,但它只出现过一次,再也没有出现过。

是否有一种方法可以可靠地看到每个http请求,一个页面正在通过javascript从Chrome?

(编辑:11 11/30/09 55)

目前,为了解决这个问题,我在Chrome旁边运行Fiddler来查看我的请求,但如果有一种方法可以从浏览器内部完成,我宁愿这样做。


当前回答

对此,最新的答案是:它们被列在开发工具的“网络”按钮下,而不再像以前那样列在“资源”下。

其他回答

不知道在哪个chrome版本这是可用的,但我发现了一个设置“控制台-日志XMLHttpRequests”(点击在chrome的开发者工具右下角的图标)

你也可以在浏览器的页面上右击,选择“Inspect Element”来调出开发人员工具。

https://developer.chrome.com/devtools

你可以使用Fiddler,这是一个很好的免费工具。

我知道这是一个老帖子,但我想我应该插话。

Chrome目前有一个内置的解决方案。

Use CTRL+SHIFT+I (or navigate to Current Page Control > Developer > Developer Tools. In the newer versions of Chrome, click the Wrench icon > Tools > Developer Tools.) to enable the Developer Tools. From within the developer tools click on the Network button. If it isn't already, enable it for the session or always. Click the "XHR" sub-button. Initiate an AJAX call. You will see items begin to show up in the left column under "Resources". Click the resource and there are 2 tabs showing the headers and return content.

对此,最新的答案是:它们被列在开发工具的“网络”按钮下,而不再像以前那样列在“资源”下。