Add class/method/function info to frame lines

This commit is contained in:
filp
2013-03-13 23:39:31 +00:00
parent 1fee57328a
commit 67e1e0d8a5
+18 -2
View File
@@ -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 ?>