Index: trunk/kernel/include/debugger.php
===================================================================
diff -u -r2625 -r2678
--- trunk/kernel/include/debugger.php (.../debugger.php) (revision 2625)
+++ trunk/kernel/include/debugger.php (.../debugger.php) (revision 2678)
@@ -174,10 +174,15 @@
{
$traceRec =& $trace[$i];
$argsID = 'trace_args_'.$dataIndex.'_'.$i;
+
+ $has_args = isset($traceRec['args']);
+
if(isset($traceRec['file']))
{
$func_name=isset($traceRec['class'])?$traceRec['class'].$traceRec['type'].$traceRec['function']:$traceRec['function'];
- $ret .= 'Function: '.$this->getFileLink($traceRec['file'],$traceRec['line'],$func_name);
+ $args_link = $has_args ? 'Function' : 'Function';
+
+ $ret .= $args_link.': '.$this->getFileLink($traceRec['file'],$traceRec['line'],$func_name);
$ret .= ' in '.basename($traceRec['file']).' on line '.$traceRec['line'].'
';
}
else
@@ -186,9 +191,12 @@
}
// ensure parameter value is not longer then 200 symbols
+ if($has_args)
+ {
$this->processTraceArguments($traceRec['args']);
$args = $this->highlightString(print_r($traceRec['args'], true));
$ret .= '