From 72b92d0fd3bf2a9aef05b55011aa701cdc489592 Mon Sep 17 00:00:00 2001 From: Dmitrii Derepko Date: Sun, 8 Sep 2024 19:35:22 +0300 Subject: [PATCH] Startup debugger on app start --- config/events-web.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/events-web.php b/config/events-web.php index 80950d0db..367d5768e 100644 --- a/config/events-web.php +++ b/config/events-web.php @@ -6,10 +6,10 @@ use Yiisoft\Middleware\Dispatcher\Event\AfterMiddleware; use Yiisoft\Middleware\Dispatcher\Event\BeforeMiddleware; use Yiisoft\Profiler\ProfilerInterface; +use Yiisoft\Yii\Debug\Collector\ExceptionCollector; use Yiisoft\Yii\Debug\Collector\Web\MiddlewareCollector; use Yiisoft\Yii\Debug\Collector\Web\RequestCollector; use Yiisoft\Yii\Debug\Collector\Web\WebAppInfoCollector; -use Yiisoft\Yii\Debug\Collector\ExceptionCollector; use Yiisoft\Yii\Debug\Debugger; use Yiisoft\Yii\Http\Event\AfterEmit; use Yiisoft\Yii\Http\Event\AfterRequest; @@ -23,6 +23,7 @@ return [ ApplicationStartup::class => [ + [Debugger::class, 'startup'], [WebAppInfoCollector::class, 'collect'], ], ApplicationShutdown::class => [