summaryrefslogtreecommitdiff
path: root/it_debug.class
diff options
context:
space:
mode:
Diffstat (limited to 'it_debug.class')
-rw-r--r--it_debug.class7
1 files changed, 5 insertions, 2 deletions
diff --git a/it_debug.class b/it_debug.class
index b0f544e..23efea5 100644
--- a/it_debug.class
+++ b/it_debug.class
@@ -154,15 +154,18 @@ function dump($args)
$r .= "$item ";
else {
$var = "$blue$var=$noblue";
- $r .= preg_match("/\n/", $item) ? "\n$var$item\n" : "$var$item ";
+ $r .= $previtem && preg_match("/\n/", $item . $previtem) ? "\n$var$item " : "$var$item ";
+ $previtem = $item;
}
}
if ($GLOBALS['debug_indent'])
$r = str_repeat(" ", count(debug_backtrace())-3) . $r;
+ $title = it_html::Q(self::backtrace(array('skiplevels' => 1)));
+
if (isset($_SERVER['REMOTE_ADDR']) && !$plain)
- return "<pre style='color:#c00; text-align:left; background-color:white; margin:0'>$r</pre>\n";
+ return "<pre title='$title' style='color:#c00; text-align:left; background-color:white; margin:0; padding:0.25em; border-bottom:1px solid #ddd'>$r</pre>\n";
else
return "$r\n";
}