Skip to content

Instantly share code, notes, and snippets.

@uno-de-piera
Created June 13, 2020 18:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uno-de-piera/92edee9bed60f48c4f6874d95113dddb to your computer and use it in GitHub Desktop.
Save uno-de-piera/92edee9bed60f48c4f6874d95113dddb to your computer and use it in GitHub Desktop.
<?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