The Jetea Exception component.
composer require jetea/exception=~2.0 -vvv
-
vim index.php
<?php require __DIR__ . '/vendor/autoload.php'; $handler = new \Jetea\Exception\Handler(); (new \Jetea\Exception\HandleExceptions($handler))->handle(); //undefined variable: a echo $a;
-
Run
php -S 127.0.0.1:9000
-
Open a browser window and navigate to http://127.0.0.1:9000. You should be able to see the debugger page.