private static function debug($debugmsg) { if (self::$_debug) { error_log($debugmsg); echo "<!--slightphp debug: " . $debugmsg . "-->"; } }