function debugPrintCallingFunction in Filebrowser 8
Same name and namespace in other branches
- 7.4 filebrowser.common.inc \debugPrintCallingFunction()
- 7.2 filebrowser.common.inc \debugPrintCallingFunction()
- 7.3 filebrowser.common.inc \debugPrintCallingFunction()
1 call to debugPrintCallingFunction()
- _filebrowser_node_content_load in ./
filebrowser.common.inc - Load a specific node content.
File
- ./
filebrowser.common.inc, line 662 - Misc filebrowser common functions.
Code
function debugPrintCallingFunction() {
$file = 'n/a';
$func = 'n/a';
$line = 'n/a';
$debugTrace = debug_backtrace();
if (isset($debugTrace[1])) {
$file = $debugTrace[1]['file'] ? $debugTrace[1]['file'] : 'n/a';
$line = $debugTrace[1]['line'] ? $debugTrace[1]['line'] : 'n/a';
}
if (isset($debugTrace[2])) {
$func = $debugTrace[2]['function'] ? $debugTrace[2]['function'] : 'n/a';
}
echo "<pre>\n{$file}, {$func}, {$line}\n</pre>";
}