View AJAX response content in Chrome developer tools?

后端 未结 9 532
忘掉有多难
忘掉有多难 2020-12-02 17:04

Traditionally I use FireBug to debug my AJAX requests. It lets you examine both the contents of your request as well as the response that was sent back from the server. (it

相关标签:
9条回答
  • 2020-12-02 17:25

    Turn on resource tracking, then check the resources tab. Resource tracking seems to work a lot better if you check "always use resource tracking."

    0 讨论(0)
  • 2020-12-02 17:30

    I encountered the same problem: POST request from flash + JSON response + no response displayed in Chrome inspector. No problem with FF + FireBug though.

    Adding charset=utf-8 to Content-Type in the response headers solved the problem for me:

    Content-Type: application/json; charset=utf-8

    I'm not sure if this is the proper solution for this issue, but at least I'm able to see now the JSON response in Chrome Inspector.

    0 讨论(0)
  • 2020-12-02 17:33

    In the fail callback, the first parameter has a property called responseText.

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