outputDebug() public method

Deprecation: 4.3.2
public outputDebug ( $object, $msg, $shift )
Example #1
0
 /**
  * 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
  */
 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);
     }
 }