Skip to content

Instantly share code, notes, and snippets.

@uno-de-piera

uno-de-piera/debugbar.php Secret

Created Jun 13, 2020
Embed
What would you like to do?
<?php
Debugbar::info($object);
Debugbar::error('Error!');
Debugbar::warning('Watch out…');
Debugbar::addMessage('Another message', 'mylabel');
Debugbar::startMeasure('render','Time for rendering');
Debugbar::stopMeasure('render');
Debugbar::addMeasure('now', LARAVEL_START, microtime(true));
Debugbar::measure('My long operation', function() {
// Do something…
});
try {
throw new Exception('foobar');
} catch (Exception $e) {
Debugbar::addThrowable($e);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment