Prints the debug messages into the current response object

@return void
969986
public function printDebug()
    {
        if(($this->xResponse))
        {
            foreach($this->aDebugMessages as $sMessage)
            {
                $this->xResponse->debug($sMessage);
            }
            $this->aDebugMessages = [];
        }
    }
938445
public function debug() {
		return array(
			'id'         => $this->id(),
			'name'       => strtolower(substr(get_class($this), strlen('elfinderdriver'))),
			'mimeDetect' => $this->mimeDetect,
			'imgLib'     => $this->imgLib
		);
	}
525045
public static void printFatal(Object message)
	{

		if (message instanceof Throwable)
		{
			Throwable e = (Throwable) message;
			e.printStackTrace();
		}

		Log log = getLog(Debugger.class);
		if(log != null)
			log.fatal(message);
		else
			System.err.println(message);
		
	}
521561
public static function debugPrintln($message)
    {
        global $globals;
        
        if (isset($globals['DEBUG']) && $globals['DEBUG'] == true)
        {
            self::println($message);
        }
    }
6717
public function logDebug()
  {
    if ($this->getVerbosity()>=OutputInterface::VERBOSITY_DEBUG)
    {
      $args   = func_get_args();
      $format = array_shift($args);

      $this->writeln(vsprintf('<info>'.$format.'</info>', $args));
    }
  }
360958
@Override
    public void debug() {
        if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
            Tr.debug(tc, "Response Message: " + this);
            Tr.debug(tc, "Status: " + getStatusCodeAsInt());
            Tr.debug(tc, "Reason: " + getReasonPhrase());
            super.debug();
        }
    }
430223
private function initDebug()
    {
        if (!$this->getVar('debug_level') && !isset($_REQUEST['debug_level'])) return;

		$this->debugMode = $this->getVar('debug_level') | $_REQUEST['debug_level'];
		
        $this->_debug_writer = new \Zend_Log_Writer_Firebug();
        $this->_debugger_request  = new \Zend_Controller_Request_Http();
        $this->_debugger_response = new \Zend_Controller_Response_Http();
        $this->_debugger_channel  = \Zend_Wildfire_Channel_HttpHeaders::getInstance();
        $this->_debugger_channel->setRequest($this->_debugger_request);
        $this->_debugger_channel->setResponse($this->_debugger_response);
        $this->_debugger = new \Zend_Log($this->_debug_writer);
        $this->_debugger->addPriority('SQL', DEBUG_SQL);
        $this->_debugger->addPriority('CACHE', DEBUG_CACHE);
        $this->_debugger->addPriority('BANNER', DEBUG_BANNER);
        
        ob_start();
		
		ini_set('display_errors', 1);
    }
730508
private function debug()
    {
        if (!empty($this->_errorCallbackFunction)) {
            $error = array("Error" => $this->_error);
            if (!empty($this->_sql))
                $error["SQL Statement"] = $this->_sql;
            if (!empty($this->_bind))
                $error["Bind Parameters"] = trim(print_r($this->_bind, true));

            $backtrace = debug_backtrace();
            if (!empty($backtrace)) {
                foreach ($backtrace as $info) {
                    if (isset($info["file"]) && $info["file"] != __FILE__)
                        $error["Backtrace_Line_" . $info["line"]] = $info["file"] . " at line " . $info["line"];
                }
            }

            $msg = "";

            $msg .= "SQL Error\n" . str_repeat("-", 50);
            foreach ($error as $key => $val) {
                $msg .= "\n\n$key:\n$val";
            }

            $this->logger->error($msg);
        }
    }
13274
public function printScript()
    {
        foreach ($this->scripts as $key => $options) {
            $src = (is_string($options['src'])) ? $options['src'] : $this->getScriptLink($key);
            if ($options['with_version']) {
                $src = call_user_func_array($this->assetInsertMethod, [$src, $this->assetVersion]);
            }
            echo "<script type='text/javascript' src='$src'></script>\n";
        }
        $this->printInlineScript();
    }
1355720
def debug(cls, message):
        
        if cls.verbose > 1:
            msg = '[DEBUG] %s' % message
            cls.echo(msg)
498587
public function debug()
    {
        $print = "Lazer::table(" . $this->name . ")\n";
        foreach ($this->pending as $function => $values)
        {
            if (!empty($values))
            {

                if (is_array($values))
                {
                    if (is_array(reset($values)))
                    {
                        foreach ($values as $value)
                        {
                            if ($function == 'where')
                            {
                                array_shift($value);
                            }
                            if ($function == 'with')
                            {
                                $params = implode(':', $value);
                            }
                            else
                            {
                                $params = implode(', ', $value);
                            }
                            $print .= "\t" . '->' . $function . '(' . $params . ')' . "\n";
                        }
                    }
                    else
                    {
                        $params = implode(', ', $values);
                        $print .= "\t" . '->' . $function . '(' . $params . ')' . "\n";
                    }
                }
                else
                {
                    $print .= "\t" . '->' . $function . '(' . $values . ')' . "\n";
                }
            }
        }
        echo '<pre>' . print_r($print, true) . '</pre>';
        $this->clearQuery();
    }
463359
def debug_msg(message):
        
        message = message or ""
        if Console.color:
            Console.cprint('RED', 'DEBUG: ', message)
        else:
            print(Console.msg('DEBUG: ' + message))
4052
public function sendOutput()
    {
        // check environment to see what and how to do the output
        $prettyPrint = false;
        if ($this->env == 'development') {
            $prettyPrint = true;
            unset($this->outputArray['debug']);
        }

        // if there is an error, we always dump the content
        if (!empty($this->outputArray['errorReport'])) {
            unset($this->outputArray['data']);
        }

        // build response
        if (empty($this->outputArray)) {
            $response = $this->httpResponse();
        } else {
            $response = new JsonResponse($this->outputArray, $this->debugHeaders, $prettyPrint);
        }

        // set proper status code to the response
        $response->setStatusCode($this->statusCode, $this->message);

        // check the expires header
        if ($this->expiresIn > 0) {
            $expiration = $this->dateTime()->add('PT' . $this->expiresIn . 'S');
            $response->cacheControl()->setAsCache($expiration);
        }

        // send it to the browser
        $response->send();
    }
716922
public function printPHPCSUsage()
    {
        ob_start();
        parent::printPHPCSUsage();
        $help = ob_get_contents();
        ob_end_clean();

        echo $this->fixHelp($help);
    }
324546
public function debug()
    {
        $query = $this->pdo->prepare(<<<SQL
SELECT *
FROM robotstxt__cache1
WHERE base = :base;
SQL
        );
        $query->bindValue('base', $this->base, \PDO::PARAM_STR);
        $query->execute();
        return $query->rowCount() > 0 ? $query->fetch(\PDO::FETCH_ASSOC) : [];
    }
609377
protected function print_debug($sql, array $params=null, $obj=null) {
        if (!$this->get_debug()) {
            return;
        }
        if (CLI_SCRIPT) {
            $separator = "--------------------------------\n";
            echo $separator;
            echo "{$sql}\n";
            if (!is_null($params)) {
                echo "[" . var_export($params, true) . "]\n";
            }
            echo $separator;
        } else if (AJAX_SCRIPT) {
            $separator = "--------------------------------";
            error_log($separator);
            error_log($sql);
            if (!is_null($params)) {
                error_log("[" . var_export($params, true) . "]");
            }
            error_log($separator);
        } else {
            $separator = "<hr />\n";
            echo $separator;
            echo s($sql) . "\n";
            if (!is_null($params)) {
                echo "[" . s(var_export($params, true)) . "]\n";
            }
            echo $separator;
        }
    }
538431
public static function printLog()
    {
        if (! empty(self::$process->debugLog)) {

            if (PHP_SAPI !== 'cli') {
                $out = [];
                foreach (self::$process->debugLog as $item) {
                    $out[] = '<pre>' . htmlspecialchars($item) . '</pre>';
                }
                echo implode('<hr>', $out);
            }
            else {
                echo implode(PHP_EOL, self::$process->debugLog), PHP_EOL;
            }
        }
    }