2
0
forked from Wavyzz/dolibarr

Added XDebug tools

This commit is contained in:
Laurent Destailleur
2009-02-21 01:04:35 +00:00
parent 801bf75f58
commit 75b738eff9
3 changed files with 21 additions and 14 deletions

View File

@@ -1603,6 +1603,13 @@ function dol_print_error($db='',$error='')
$syslog.=", msg=".$msg;
}
}
if ($_SERVER['DOCUMENT_ROOT'] && function_exists('xdebug_call_file'))
{
print '<b>XDebug informations:</b>'."<br>\n";
print 'File: '.xdebug_call_file()."<br>\n";
print 'Line: '.xdebug_call_line()."<br>\n";
print "<br>\n";
}
dol_syslog("Error ".$syslog, LOG_ERR);
}