Skip to content

Commit

Permalink
Merge branch 'master' of github.com:pbc-web/debug-tools
Browse files Browse the repository at this point in the history
  • Loading branch information
Stewart Ritchie authored and Stewart Ritchie committed Mar 1, 2019
2 parents 06429ad + ca06e60 commit 7698ad3
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
composer.lock
vendor
6 changes: 4 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
"name": "pbc/debug-tools",
"description": "WordPress Debugging Tools for PBC projects",
"type": "wordpress-muplugin",
"license": "GPL2",
"license": "GPL-2.0-or-later",
"authors": [
{
"name": "Stewart Ritchie",
"email": "[email protected]"
}
],
"require": {}
"require": {
"filp/whoops": "^2.3"
}
}
20 changes: 20 additions & 0 deletions pbc-debug-tools.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,26 @@
*/



use \Exception as BaseException;
use \Whoops\Handler\PrettyPageHandler;
use \Whoops\Run;

$whoops = new \Whoops\Run;
$handler = new PrettyPageHandler();
$handler->setApplicationPaths([__FILE__]);
$whoops->pushHandler($handler);
$whoops->register();







//throw new Exception("Something broke!");
//askdk

function pbc_backtrace(){

$trace = debug_backtrace();
Expand Down

0 comments on commit 7698ad3

Please sign in to comment.