mirror of
https://github.com/filp/whoops.git
synced 2026-09-17 21:26:34 +00:00
Add class/method/function info to frame lines
This commit is contained in:
@@ -82,6 +82,17 @@
|
||||
background: #BEE9EA;
|
||||
}
|
||||
|
||||
.frame-class, .frame-function {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.frame-class {
|
||||
color: #4288CE;
|
||||
}
|
||||
.active .frame-class {
|
||||
color: #BEE9EA;
|
||||
}
|
||||
|
||||
.frame-file {
|
||||
font-family: consolas, monospace;
|
||||
word-wrap:break-word;
|
||||
@@ -281,9 +292,14 @@
|
||||
for that particular frame */ ?>
|
||||
<?php foreach($v->frames as $i => $frame): ?>
|
||||
<div class="frame <?php echo ($i == 0 ? 'active' : '') ?>" id="frame-line-<?php echo $i ?>">
|
||||
<div class="frame-method-info">
|
||||
<span class="frame-class"><?php echo $e($frame->getClass() ?: '') ?></span>
|
||||
<span class="frame-function"><?php echo $e($frame->getFunction() ?: '') ?></span>
|
||||
</div>
|
||||
|
||||
<span class="frame-file">
|
||||
<?php echo $e($frame->getFile() ?: '<#unknown>') ?><!-- get rid of ugly whitespace
|
||||
--><span class="frame-line"><?php echo (int) $frame->getLine() ?></span>
|
||||
<?php echo $e($frame->getFile() ?: '<#unknown>') ?><!--
|
||||
--><span class="frame-line"><?php echo (int) $frame->getLine() ?></span>
|
||||
</span>
|
||||
</div>
|
||||
<?php endforeach ?>
|
||||
|
||||
Reference in New Issue
Block a user