method debug documentation in bbn\X
Gets the backtrace and dumps or logs it into a file.
Example
X::dump(X::debug());
function($file = '')
{
$debug = array_map(
function ($a) {
if (isset($a['object'])) {
unset($a['object']);
}
return $a;
}, debug_backtrace()
);
if (empty($file)) {
self::hdump($debug);
}
else{
self::log($debug, $file);
}
}
Gets the backtrace and dumps or logs it into a file. BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way
This website uses cookies to ensure you get the best experience on our website.
© 2011-2025
BBN Solutions