Update example.php

This commit is contained in:
filp
2013-03-13 22:44:34 +00:00
parent a1d41c8aaa
commit d9fd7dfbc7
+4 -1
View File
@@ -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() {