From 94f9adc2ea3f59aba79b3d2507a1961ae53ecc4a Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Wed, 29 Jun 2022 15:58:58 +0200 Subject: ED varname output was broken due to new stacklevel it_debug::echo --- it_debug.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/it_debug.class b/it_debug.class index c4bc8db..66eb09b 100644 --- a/it_debug.class +++ b/it_debug.class @@ -113,7 +113,7 @@ static function dump($args, $p = []) else if (defined('STDOUT') && posix_isatty(STDOUT) && $p['color']) list($blue, $noblue, $red, $nored, $ansiok) = getenv('IT_ED_BRIGHT') ? array("\033[34m", "\033[m", "\033[33m", "\033[m", 1) : array("\033[34m", "\033[m", "\033[31m", "\033[m", 1); - $src = it_debug::srcline(1); + $src = it_debug::srcline(2); list($dummy, $function, $paramlist) = preg_match('#\b(D|ED|EDC|EDX)\s*\((.*)#i', $src, $parts) ? $parts : array(); $paramtokens = token_get_all("