diff --git a/example.php b/example.php index a124d7f..c0d6712 100644 --- a/example.php +++ b/example.php @@ -24,12 +24,15 @@ class Exception extends BaseException {} $run = new Run; $run->pushHandler(new PrettyPage); + +// Example: tag all frames with a comment $run->pushHandler(function($exception, $inspector, $run) { $frames = $inspector->getFrames(); foreach($frames as $i => $frame) { - $frame->addComment('This is frame number ' . $i); + $frame->addComment('This is frame number ' . $i, 'example'); } }); + $run->register(); function fooBar() {