Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how can we view symfony dump() output with ajax request?

Tags:

ajax

dump

symfony

Hi my question is that we can view the output of symfony dump() function with normal http request, but can we view the output with ajax request?

like image 470
Ahmed Ali Avatar asked Nov 20 '25 09:11

Ahmed Ali


1 Answers

U can check all dump data from standart symfony profiler toolbar.

First, use dump() function as u usually do:

dump(array('Some key' => 'Some value'));

Then, open app_dev.php symfony enviroment, and do your ajax action. Look at profiler toolbar on request section: enter image description here

Click on ajax action profile id. (460769 in example above) Then look at debug section in profiler enter image description here

like image 165
Stephan Yamilov Avatar answered Nov 23 '25 10:11

Stephan Yamilov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!