Chrome控制台日志无法看到AJAX发布/获取请求/响应 [英] Chrome Console Log Can't see AJAX post/get requests/response

查看:668
本文介绍了Chrome控制台日志无法看到AJAX发布/获取请求/响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道它是否来自Chromes最近的更新,我不知道它是否是我设法在不知不觉中关闭的一个选项。但无论哪种方式,在过去几天的某个时间,我的控制台登录Chrome浏览器停止显示发布/获取请求,所以我可以看到最新发布的内容以及发送回应的内容,我知道这并不完全正确就像在firefox上的firebug,但类似的都不会少。



如果chrome上的firebug没有超出我的使用范围,那么我会使用它,但它会侵入满足我对铬的需求,因为我无法一路向下滚动。每次刷新页面时,我都会丢失我的数据,我试图跟踪错误。

所以问题是,有没有办法让这回来?能够查看POST / GET请求/响应。我知道我可以打开记录XMLHttpRequests,但只显示哪些函数正在启动,而不是实际发布的数据或响应。

解决方案

打开控制台,然后选择保留日志。

如果您想查看AJAX post / get requests / response,请执行以下操作:


  1. 打开控制台

  2. 右键点击控制台日志流
  3. 选中或选择Log XMLHttpRequests


I don't know if its from one of Chromes recent updates I don't know if its an option I managed to turn off unknowingly. But either way sometime in the Past couple of days my Console Log on Chrome stopped showing post/get requests so I can see whats going on as far as whats being posted and what the response is being sent back, I know it wasn't exactly like firebug on firefox but similar none the less.

If firebug on chrome didn't get in my way more than it was helpful I would use it, but its to intrusive to my needs in chrome as I can't scroll all the way down an all else. And everytime I refresh the page I lose my data I am trying to track for bugs.

So Question is, is there a means of turning this back on? The ability to see the POST/GET requests/responses. I know I can turn on "Log XMLHttpRequests" but that only shows me what functions are being fired off, and not the actual posted data or response.

解决方案

Open the console, then check "Preserve Log".

If you want to see AJAX post/get requests/response do the following:

  1. Open the console
  2. Right-click into the console log stream
  3. Check or select "Log XMLHttpRequests"

这篇关于Chrome控制台日志无法看到AJAX发布/获取请求/响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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