Last active
April 26, 2020 08:58
-
-
Save VelichkoAlexander/754748f203b30e041600a5af2b470488 to your computer and use it in GitHub Desktop.
WP dev
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
composer require filp/whoops | |
composer require symfony/var-dumper | |
function registerWhoops() { | |
$whoops = new \Whoops\Run; | |
$whoops->pushHandler( new \Whoops\Handler\PrettyPageHandler ); | |
$whoops->register(); | |
} | |
if ( WP_DEBUG ) { | |
registerWhoops(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment