All Projects → steevanb → php-backtrace

steevanb / php-backtrace

Licence: other
Show nice equivalent to debug_backtrace(), with caller, code preview etc.

Programming Languages

PHP
23972 projects - #3 most used programming language
shell
77523 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to php-backtrace

framework
Cygnite PHP Framework- A Modern Toolkit For Web Developers
Stars: ✭ 43 (+138.89%)
Mutual labels:  symfony-console
console
Menu helper for Symfony Console component
Stars: ✭ 19 (+5.56%)
Mutual labels:  symfony-console
terminable-loop-command
A Shell+PHP wrapper to run Symfony console commands in loop under a daemon or Kubernetes
Stars: ✭ 16 (-11.11%)
Mutual labels:  symfony-console
pecan
ReactPHP Shell, based on the Symfony Console component.
Stars: ✭ 43 (+138.89%)
Mutual labels:  symfony-console

version php Lines Total Downloads Scrutinizer

php-backtrace

Show nice equivalent to debug_backtrace(), with caller, code preview etc.

Can be used in HTML, or with symfony/console.

Changelog

Installation

composer require --dev steevanb/php-backtrace ^2.1

Configuration

// configure how file paths will be shown
// true : remove path prefix, based on DumpBacktrace.php path (assume it is in vendor/ dir)
// false : do not remove anything in file paths
// string : remove this prefix
\DumpBacktrace::setRemovePathPrefix($remove);

Dump as HTML

// get backtrace dump as array
\DebugBacktraceHtml::getBacktraces();
// get backtrace dump as HTML
\DebugBacktraceHtml::getDump();
// write getDump() HTML with echo
\DebugBacktraceHtml::dump();
// write getDump() HTML with echo, and exit
\DebugBacktraceHtml::eDump();

HTML backtrace

Dump in symfony/console application

// Write dump
\DebugBacktraceConsole::dump();
// Write dump and exit
\DebugBacktraceConsole::eDump();

Console backtrace

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].