mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-01-17 13:28:35 +01:00
17 lines
268 B
PHP
17 lines
268 B
PHP
|
<?php
|
||
|
|
||
|
include 'bootstrap.php';
|
||
|
|
||
|
try {
|
||
|
throw new Exception('Something failed!');
|
||
|
} catch (Exception $e) {
|
||
|
$debugbar['messages']->addMessage($e, 'error');
|
||
|
}
|
||
|
|
||
|
?>
|
||
|
error from AJAX
|
||
|
<?php
|
||
|
$debugbar->collect();
|
||
|
echo $debugbarRenderer->renderAjaxToolbar();
|
||
|
?>
|