mirror of
https://github.com/filp/whoops.git
synced 2026-08-30 12:07:25 +00:00
449 B
449 B
Replay Errors
You can replay Errors that happened in production if you serialize them and store them to later replay in a development Whoops:
$serialized_exception = serialize(new Exception('Something has happened!'));
$whoops = new \Whoops\Run;
$whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler);
$whoops->register();
$whoops->handleException(unserialize($serialized_exception));