mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
#502 - debugPrint에 File name, line 추가
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4404 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
d722562641
commit
bda3a95f3f
1 changed files with 3 additions and 1 deletions
|
|
@ -314,7 +314,9 @@
|
|||
**/
|
||||
function debugPrint($buff = null, $display_line = true) {
|
||||
$debug_file = _XE_PATH_."files/_debug_message.php";
|
||||
$buff = sprintf("%s\n",print_r($buff,true));
|
||||
$bt = debug_backtrace();
|
||||
$first = array_shift($bt);
|
||||
$buff = sprintf("[%s:%d]\n%s\n", array_pop(split(DIRECTORY_SEPARATOR, $first["file"])), $first["line"], print_r($buff,true));
|
||||
|
||||
if($display_line) $buff = "\n====================================\n".$buff."------------------------------------\n";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue