简体   繁体   中英

How to debug AJAX POST request that redirects?

I am trying to debug a problem with 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

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.

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.

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.

示例持久按钮位置

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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