Symfony 3 doesn't display error and disconnected server

时间:2016-07-28 20:24:00

标签: php symfony

I created first project and I forgot the semicolon. I refresh page but server became disconnect. I run server by console php bin.console -v server:run I try add to file error_reporting(E_ALL); ini_set('display_errors', 'on');

So... How can I display error and why server is disconnect when find error? I have php 5.5.12 and xDebug.

1 个答案:

答案 0 :(得分:1)

尝试以开发模式运行内置服务器:

php bin/console server:run --env=dev

Symfony现在将显示错误。此外,您还可以检查日志中的错误(var / logs / dev.log,如果您在开发模式下运行,或者var / logs / prod.log,如果您在prod模式下运行)