Skip to content

Instantly share code, notes, and snippets.

@nWidart
Created March 28, 2014 11:31
Show Gist options
  • Select an option

  • Save nWidart/9830648 to your computer and use it in GitHub Desktop.

Select an option

Save nWidart/9830648 to your computer and use it in GitHub Desktop.
$whoops = new Whoops\Run();
$whoops->pushHandler(new Whoops\Handler\PrettyPageHandler());
// Set Whoops as the default error and exception handler used by PHP:
$whoops->register();
//throw new RuntimeException("Oopsie!");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment