Is there a php.ini directive that enables stack traces on errors?

后端 未结 2 1442
庸人自扰
庸人自扰 2020-12-21 04:12

Is there a php.ini directive that enables stack traces on errors? I already looked here: http://php.net/manual/en/ini.core.php. My shared-hosting does not have Xdebug inst

2条回答
  •  暖寄归人
    2020-12-21 04:37

    not directly but you can call debug_backtrace() OR catch your errors and have the exception class dump its stack trace with exception::getTrace();

提交回复
热议问题