getTrace(), [ 'format' => 'array', 'args' => true, ]); foreach ($stackTrace as $i => $stack): $excerpt = []; $params = []; $line = null; if (isset($stack['file'], $stack['line']) && is_numeric($stack['line'])): $line = $stack['line']; $excerpt = Debugger::excerpt($stack['file'], $line, 4); endif; if (isset($stack['file'])): $file = $stack['file']; else: $file = '[internal function]'; endif; if (isset($stack['function'])): if (!empty($stack['args'])): foreach ((array)$stack['args'] as $arg): $params[] = Debugger::exportVar($arg, 4); endforeach; else: $params[] = 'No arguments'; endif; endif; ?>
| = $line ?> |