php-debugbar
php-debugbar copied to clipboard
PDO data collecting through AJAX -2
I am using JQeury, and i see that $debugbar->sendDataInHeaders(); return headers for the debug bar in ajax calls. But i dont; see any data from the Ajax calls in de debug bar. Wat can be the problem?
I'm also using the $debugbar->sendDataInHeaders() to get Ajax calls. I get the request POST or GET parameters but not PDO ones. Is there a workaround to get those information?
Are you using a storage handler to store the requests?
@barryvdh I tried both ways. Once with only the $debugbar->sendDataInHeaders() and once with a storage handler. I couldn't get the data into the debugbar but seeing the json file generated the pdo['statements'] is empty. Though the $_POST parameters are correct
@barryvdh is there any sample for do it this way?
I am face the same problem
I found solution, call $debug->sendDataInHeaders(true); exactly before send content response.
Facing the same problem. Couldn't be very logic to send the headers at any moment of the script, and update the .json incrementally?