php-debugbar icon indicating copy to clipboard operation
php-debugbar copied to clipboard

PDO data collecting through AJAX -2

Open cvlug opened this issue 9 years ago • 7 comments

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?

cvlug avatar Apr 30 '16 10:04 cvlug

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?

Jonathanm10 avatar Aug 17 '16 08:08 Jonathanm10

Are you using a storage handler to store the requests?

barryvdh avatar Aug 17 '16 09:08 barryvdh

@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

Jonathanm10 avatar Aug 17 '16 09:08 Jonathanm10

@barryvdh is there any sample for do it this way?

shawe avatar Jul 16 '17 07:07 shawe

I am face the same problem

webmailcontatos avatar Jul 17 '17 16:07 webmailcontatos

I found solution, call $debug->sendDataInHeaders(true); exactly before send content response.

webmailcontatos avatar Aug 15 '17 15:08 webmailcontatos

Facing the same problem. Couldn't be very logic to send the headers at any moment of the script, and update the .json incrementally?

devnix avatar Dec 24 '18 09:12 devnix