我使用 php 内置网络服务器在本地调试我的网站。
php -S localhost:8080
有时,如果出现问题,我会在 stdout 中出现一般性 500 错误,但我不明白问题出在哪里。
127.0.0.1:51936 [500]: /dashboard
是否有一种方法可以像 error.log 那样获得更具描述性的错误?
编辑:
我的错误是
$this->userDisplayName()
代替
$this->zfcUserDisplayName()
在我的 Zend Framework 2 应用程序的 PHTML View 中
最佳答案
老实说,我还没有使用过 php 内置功能,所以我没有经验,也没有太多线索,但是......在 apache 中,你将 LogLevel
指令设置为 debug
... 那么如何在 php.ini
display_errors: On
error_reporting: E_ALL
log_errors: On
关于php内置网络服务器错误日志(Zend Framework 2 App),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14214950/