final public function setDebug($callback = true)
    {
        if ($callback === true) {
            if (php_sapi_name() === 'cli') {
                $callback = new DebuggerOutConsole();
            } else {
                $callback = new DebuggerOutHtml();
            }
        }
        $this->debugCallback = $callback;
    }
final public function setDebug($callback = true)
    {
        if ($callback === true) {
            if (php_sapi_name() === 'cli') {
                $callback = new DebuggerOutConsole();
            } else {
                $callback = new DebuggerOutHtml();
            }
        }
        $this->debugCallback = $callback;
    }
final public function setDebug ( $ callback = true ) { if ( $ callback === true ) { if ( php_sapi_name ( ) === 'cli' ) { $ callback = new DebuggerOutConsole ( ) ; } else { $ callback = new DebuggerOutHtml ( ) ; } } $ this -> debugCallback = $ callback ; }
Sets a handler for the debug info

@param callable|bool $callback [optional]
a callback($query, $duration, $info) or TRUE for the standard handler or NULL for disable
Sets a handler for the debug info