In Chrome, how can I see what AJAX requests are being made?

前端 未结 4 2029
独厮守ぢ
独厮守ぢ 2020-12-03 13:46

In Chrome, how can I see what AJAX requests are being made?

In Firefox I use Firebug and I can see any background AJAX request that are made.

相关标签:
4条回答
  • 2020-12-03 14:33

    you can also use liveHTTPHeader, a chrome/firefox extension. it works pretty well.

    0 讨论(0)
  • 2020-12-03 14:34

    In new Chrome browsers you can press F12 key or CTRL+SHIFT+I key combinations to view the Developer Tools. From there AJAX/XHR calls can be viewed through Network tab.

    0 讨论(0)
  • 2020-12-03 14:42

    Here's what works for me on Linux and Windows 10:

    • F12 to open developer tools
    • click on the network tab on the top list,
    • select XHR (it's circled in image below)

    0 讨论(0)
  • 2020-12-03 14:44
    1. Open the developer tools with Ctrl-Shift-i, or via the menu at Wrench/Tools/Developer tools:
      Chrome Developer Tools

    2. Click on the Network Tab:
      Network Tab

    3. Click on the "XHR" link at the bottom of the list to filter the results to only AJAX requests:
      XHR link

    4. Click on a request at the left to select it and use the "Headers", "Content", "Cookies" and "Timing" tabs for that request to see more details:
      A good XHR request to make :)

    You can use the separate window button in the bottom left of the tools to open the tools in their own window if you like.

    0 讨论(0)
提交回复
热议问题