简体   繁体   English

如何调试重定向的AJAX POST请求?

[英]How to debug AJAX POST request that redirects?

I am trying to debug a problem with SugarCRM. 我正在尝试使用SugarCRM调试问题。

When I click the next page button to browse the records of one of my extensions, it shows a blank page with this error message Bad data passed in; Return to Home 当我单击下一页按钮浏览我的某个扩展程序的记录时,它会显示一个空白页面,其中包含错误消息Bad data passed in; Return to Home错误Bad data passed in; Return to Home Bad data passed in; Return to Home

My searches online has resulted in now help for this issue so far as it seems many things can cause the issue. 我的在线搜索现在已经帮助解决了这个问题,因为看起来很多事情都可能导致这个问题。

So I would now like to somehow monitor the data that is being sent when I click that button. 所以我现在想以某种方式监视单击该按钮时发送的数据。 It appears to use AJAX to send some data but it immediately redirects so I am not able to see what data was sent. 它似乎使用AJAX发送一些数据,但它立即重定向,所以我无法看到发送了什么数据。

Can someone tell me how to monitor and see the posted data before a redirect happens? 有人可以告诉我如何在重定向发生之前监控和查看发布的数据吗?

You can use Firebug extension with Firefox and activate the Network tab to see every network call. 您可以在Firefox中使用Firebug扩展,并激活“网络”选项卡以查看每个网络呼叫。

The tricky part is to activate the button "Persists" in order to prevent to clean the log when a redirection or a user action changes the URL. 棘手的部分是激活“持久”按钮,以防止在重定向或用户操作更改URL时清除日志。

示例持久按钮位置

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM