1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-01-17 13:28:35 +01:00
php-debugbar/demo/ajax_exception.php

16 lines
231 B
PHP
Raw Normal View History

2013-06-08 01:32:10 +07:00
<?php
include 'bootstrap.php';
try {
throw new Exception('Something failed!');
} catch (Exception $e) {
2013-06-18 12:47:22 +09:00
$debugbar['exceptions']->addException($e);
2013-06-08 01:32:10 +07:00
}
?>
error from AJAX
<?php
2013-06-13 18:48:23 +08:00
echo $debugbarRenderer->render(false);
2013-06-08 01:32:10 +07:00
?>