Index: trunk/kernel/parser.php =================================================================== diff -u -r260 -r289 --- trunk/kernel/parser.php (.../parser.php) (revision 260) +++ trunk/kernel/parser.php (.../parser.php) (revision 289) @@ -3365,5 +3365,11 @@ return $ret; } + +function m_debug_mode($attribs = array()) +{ + $const_name = $attribs['_debugconst']; + return defined($const_name) && (constant($const_name) == 1) ? 'yes' : ''; +} ?>