From d9fd7dfbc7a6d3c8ad31a30bd94a51828cc1b8fa Mon Sep 17 00:00:00 2001 From: filp Date: Wed, 13 Mar 2013 22:44:34 +0000 Subject: [PATCH] Update example.php --- example.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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() {