Ejemplo n.º 1
0
 /**
  * 程序中并输出调试信息
  *
  */
 public static function Stop()
 {
     //输出Debug模式的信息
     if ($GLOBALS['debug']) {
         header('Content-Type:text/html; charset=' . Config::get('default_charset'));
         Debug::stop();
     } else {
         $deBugLogData = dump('', 1);
         if (!empty($deBugLogData)) {
             Config::get('dump_use_php_console') ? \Foundation\dumpUsePHPConsole($deBugLogData) : (require ALPHA_PATH . DIRECTORY_SEPARATOR . 'Foundation' . DIRECTORY_SEPARATOR . 'ConsoleLog.php');
         }
         ALPHA_OB_START && ob_end_flush();
         exit;
     }
 }