AbstractObject::debug PHP Method

debug() public method

Using first argument as string is obsolete.
public debug ( boolean | string $msg = true, string $file = null, string $line = null )
$msg boolean | string "true" to start debugging
$file string obsolete
$line string obsolete
    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);
        }
    }