Because of tp, the throwing function is used, but when debug is turned off, those error throwing functions are blocked.
Once an error is thrown, it will jump directly to the error page without displaying the error content.
Like WeChat Pay and other class libraries, after I referenced them, some exceptions were thrown in the program and I saw the content. How can I turn off debug and still see the thrown content.
<code>throw new SDKRuntimeException("统一支付接口中,缺少必填参数openid!trade_type为JSAPI时,openid为必填参数!" . "<br>"); class SDKRuntimeException extends Exception { public function errorMessage() { return $this->getMessage(); } } </code>