PHP code example of sikessem / debugger
1. Go to this page and download the library: Download sikessem/debugger library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
sikessem / debugger example snippets
$trace = backtrace();
$trace->getStack(); // Returns the trace stack
$trace->getDirectory(); // Returns the trace directory
$trace->getFile(); // Returns the trace file
$trace->getLine(); // Returns the trace line
$trace->getClass(); // Returns the trace class
$trace->getObject(); // Returns the trace object
$trace->getFunction(); // Returns the trace function
$trace->getType(); // Returns the trace type
$trace->getArgs(); // Returns the trace args
var_dump($trace); // Dumps the trace stack