public function debug($msg = true, $file = null, $line = null)
    {
        if (is_bool($msg)) {
            $this->debug = $msg;

            return $this;
        }

        if (is_object($msg)) {
            throw $this->exception('Do not debug objects');
        }

        // The rest of this method is obsolete
        if ((isset($this->debug) && $this->debug)
            || (isset($this->app->debug) && $this->app->debug)
        ) {
            $this->app->outputDebug($this, $msg, $file/*, $line*/);
        }
    }
public function debug($msg = true, $file = null, $line = null)
    {
        if (is_bool($msg)) {
            $this->debug = $msg;

            return $this;
        }

        if (is_object($msg)) {
            throw $this->exception('Do not debug objects');
        }

        // The rest of this method is obsolete
        if ((isset($this->debug) && $this->debug)
            || (isset($this->app->debug) && $this->app->debug)
        ) {
            $this->app->outputDebug($this, $msg, $file/*, $line*/);
        }
    }
public function debug ( $ msg = true , $ file = null , $ line = null ) { if ( is_bool ( $ msg ) ) { $ this -> debug = $ msg ; return $ this ; } if ( is_object ( $ msg ) ) { throw $ this -> exception ( 'Do not debug objects' ) ; } // The rest of this method is obsolete if ( ( isset ( $ this -> debug ) && $ this -> debug ) || ( isset ( $ this -> app -> debug ) && $ this -> app -> debug ) ) { $ this -> app -> outputDebug ( $ this , $ msg , $ file /*, $line*/ ) ; } }
Turns on debug mode for this object.
Using first argument as string is obsolete.

@param bool|string $msg  "true" to start debugging
@param string      $file obsolete
@param string      $line obsolete
Turns on debug mode for this object . Using first argument as string is obsolete .