I'm having difficulty debugging my PHP Application.
When I include my php file, no exception is thrown. I tried using set_error_handler, which does fire, but error_get_last() returns null.
set_error_handler(function() {
   echo 'Here is your error!';
   var_dump(error_get_last());
   echo 'Sike!';
});
try {
    include('viewer.php');
} catch (Exception $e) {
    echo 'I really ought to tell you something went wrong here. But I won\'t';
}
restore_error_handler();
exit();
Output:
Here is your error!NULL Sike!
Is there some third way I can find out what actually went wrong?
 
    