Skip to content

Commit

Permalink
Merge pull request #165 from yiisoft/enhance-debugger
Browse files Browse the repository at this point in the history
Flush collected data even if the app failed or exited with `exit()`
  • Loading branch information
xepozz committed Dec 4, 2022
2 parents 4817b44 + 4b06dc4 commit dcbea49
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Debugger.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ public function startup(object $event): void
$this->target->addCollector($collector);
$collector->startup();
}

register_shutdown_function([$this, 'shutdown']);
}

private function isRequestIgnored(ServerRequestInterface $request): bool
Expand Down

0 comments on commit dcbea49

Please sign in to comment.