Closed eaglemoor closed 9 years ago
Hi. I try use yii2-debug db panel for show request online in rest
web.php
if (YII_ENV_DEV) { // configuration adjustments for 'dev' environment $config['bootstrap'][] = 'debug'; $config['modules']['debug'] = 'yii\debug\Module'; $config['components']['response']['on beforeSend'] = function ($event) { /** @var \yii\debug\Module $debug */ $debug = Yii::$app->getModule('debug'); var_dump($debug->panels['db']->models); } }
But this work only on Yii Debug page. How i can display all query after action? It's need for profiling rest online (without log file)
It's not correct to do so. It will affect response body so client won't be able to handle it.
Debug should remember previous requests so
Hi. I try use yii2-debug db panel for show request online in rest
web.php
But this work only on Yii Debug page. How i can display all query after action? It's need for profiling rest online (without log file)