示例#1
0
文件: fast.php 项目: vvval/spiral
    echo join(', ', $arguments);
    ?>
</span>)<br/>
                        <em>
                            In&nbsp;<?php 
    echo $trace['file'];
    ?>
&nbsp;at&nbsp;<strong>line <?php 
    echo $trace['line'];
    ?>
</strong>
                        </em>
                    </div>
                    <div class="lines">
                        <?php 
    echo \Spiral\Support\ExceptionSupport::highlightSource($trace['file'], $trace['line'], 10, new \Spiral\Tokenizer\Highlighter\InversedStyle());
    ?>
                    </div>
                </div>
                <?php 
}
?>
        </div>
        <div class="chain">
            <div class="calls">
                <?php 
foreach (array_reverse($stacktrace) as $index => $trace) {
    if (empty($trace['file']) && isset($stacktrace[$index - 1]['file'])) {
        $trace['file'] = $stacktrace[$index - 1]['file'];
        $trace['line'] = $stacktrace[$index - 1]['line'];
    }
示例#2
0
 /**
  * {@inheritdoc}
  */
 public function getMessage()
 {
     return ExceptionSupport::createMessage($this->exception);
 }
示例#3
0
文件: slow.php 项目: vvval/spiral
    echo join(', ', $arguments);
    ?>
</span>)<br/>
                        <em>
                            In&nbsp;<?php 
    echo $trace['file'];
    ?>
&nbsp;at&nbsp;<strong>line <?php 
    echo $trace['line'];
    ?>
</strong>
                        </em>
                    </div>
                    <div class="lines">
                        <?php 
    echo \Spiral\Support\ExceptionSupport::highlightSource($trace['file'], $trace['line']);
    ?>
                    </div>
                </div>
                <?php 
}
?>
        </div>
        <div class="chain">
            <div class="calls">
                <?php 
foreach (array_reverse($stacktrace) as $index => $trace) {
    if (empty($trace['file']) && isset($stacktrace[$index - 1]['file'])) {
        $trace['file'] = $stacktrace[$index - 1]['file'];
        $trace['line'] = $stacktrace[$index - 1]['line'];
    }