setDebugMode()
setDebugMode( $tf, $customLogger) : void
Toggles debug mode. In debug mode the driver will print all
SQL to the screen together with some information about the
results.
This method is for more fine-grained control. Normally
you should use the facade to start the query debugger for
you. The facade will manage the object wirings necessary
to use the debugging functionality.
Usage (through facade):
R::debug( TRUE );
...rest of program...
R::debug( FALSE );
The example above illustrates how to use the RedBeanPHP
query debugger through the facade.
Parameters