From 116a289cf79991fd15b67d96e7c4e9872710c23c Mon Sep 17 00:00:00 2001 From: yunwuxin <448901948@qq.com> Date: Wed, 15 Jun 2016 14:59:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9Bdebug=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E6=97=B6console=E4=B8=8B=E5=BC=82=E5=B8=B8=E7=9A=84=E8=BE=93?= =?UTF-8?q?=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/exception/Handle.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/think/exception/Handle.php b/library/think/exception/Handle.php index 0946b941..fde2f248 100644 --- a/library/think/exception/Handle.php +++ b/library/think/exception/Handle.php @@ -86,6 +86,9 @@ class Handle */ public function renderForConsole(Output $output, Exception $e) { + if (APP_DEBUG) { + $output->setVerbosity(Output::VERBOSITY_DEBUG); + } (new Console)->renderException($e, $output); }