More informations if using XDebug

This commit is contained in:
Laurent Destailleur
2009-10-17 13:47:17 +00:00
parent b8e871d97f
commit c78d15363f

View File

@@ -1857,9 +1857,11 @@ function dol_print_error($db='',$error='')
} }
if ($_SERVER['DOCUMENT_ROOT'] && function_exists('xdebug_call_file')) if ($_SERVER['DOCUMENT_ROOT'] && function_exists('xdebug_call_file'))
{ {
xdebug_print_function_stack();
$out.='<b>XDebug informations:</b>'."<br>\n"; $out.='<b>XDebug informations:</b>'."<br>\n";
$out.='File: '.xdebug_call_file()."<br>\n"; $out.='File: '.xdebug_call_file()."<br>\n";
$out.='Line: '.xdebug_call_line()."<br>\n"; $out.='Line: '.xdebug_call_line()."<br>\n";
$out.='Function: '.xdebug_call_function()."<br>\n";
$out.="<br>\n"; $out.="<br>\n";
} }