src/Pel.php
public static function debug($format)
    {
        if (self::$debug) {
            $args = func_get_args();
            $str = array_shift($args);
            vprintf($str . "\n", $args);
        }
    }
public static function debug($format)
    {
        if (self::$debug) {
            $args = func_get_args();
            $str = array_shift($args);
            vprintf($str . "\n", $args);
        }
    }
public static function debug ( $ format ) { if ( self :: $ debug ) { $ args = func_get_args ( ) ; $ str = array_shift ( $ args ) ; vprintf ( $ str . "\n" , $ args ) ; } }
Conditionally output debug information.

This method works just like printf() except that it always
terminates the output with a newline, and that it only outputs
something if the {@link Pel::$debug} is true.

@param string $format
the format string.

@param mixed ...$args
any number of arguments can be given. The
arguments will be available for the format string as usual with
sprintf().
Conditionally output debug information .