mirror of
https://github.com/filp/whoops.git
synced 2026-09-15 12:16:18 +00:00
Update example.php
This commit is contained in:
+4
-1
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user