diff options
author | Urban Müller | 2008-06-03 12:22:22 +0000 |
---|---|---|
committer | Urban Müller | 2008-06-03 12:22:22 +0000 |
commit | 5d6c3bf1cb8a2742362fd30121566e1e51db642c (patch) | |
tree | 5fdbe98bf13304e296f4db162153b34ebb703bd0 /it_debug.class | |
parent | b9a85c43ef088697b17bb939005099704b9400f5 (diff) | |
download | itools-5d6c3bf1cb8a2742362fd30121566e1e51db642c.tar.gz itools-5d6c3bf1cb8a2742362fd30121566e1e51db642c.tar.bz2 itools-5d6c3bf1cb8a2742362fd30121566e1e51db642c.zip |
new formatting of ED()
Diffstat (limited to 'it_debug.class')
-rw-r--r-- | it_debug.class | 7 |
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"; } |