This commit is contained in:
Matteo Gheza 2021-03-05 23:27:17 +01:00
parent 5317ba0a6f
commit 2db7984591
1 changed files with 2 additions and 1 deletions

View File

@ -811,7 +811,8 @@ function init_class($enableDebugger=true, $headers=true)
if($enableDebugger && $user->requireRole(Role::DEVELOPER)) {
$debugbar = new StandardDebugBar();
$dir = str_replace("resources\ajax\\", "", __DIR__).'\debug_storage';
bdump(__DIR__);
$dir = str_replace("resources\ajax\\", "", __DIR__).DIRECTORY_SEPARATOR.'debug_storage';
$debugbar->setStorage(new DebugBar\Storage\FileStorage($dir));
$debugbar->addCollector(new DebugBar\DataCollector\PDO\PDOCollector($database->connection));
$debugbar->addCollector(new DebugBar\DataCollector\ConfigCollector($database->options));