samples/PhotoAlbum/lib/rb.php
public static function debug( $tf = true, $logger = NULL ) {
		if (!$logger) $logger = new RedBean_Logger_Default;
		self::$adapter->getDatabase()->setDebugMode( $tf, $logger );
	}
public static function debug( $tf = true, $logger = NULL ) {
		if (!$logger) $logger = new RedBean_Logger_Default;
		self::$adapter->getDatabase()->setDebugMode( $tf, $logger );
	}
public static function debug ( $ tf = true , $ logger = NULL ) { if ( ! $ logger ) $ logger = new RedBean_Logger_Default ; self :: $ adapter -> getDatabase ( ) -> setDebugMode ( $ tf , $ logger ) ; }
Toggles DEBUG mode.
In Debug mode all SQL that happens under the hood will
be printed to the screen or logged by provided logger.

@param boolean $tf
@param RedBean_Logger $logger
Toggles DEBUG mode . In Debug mode all SQL that happens under the hood will be printed to the screen or logged by provided logger .