dongya9904 2012-09-11 14:28
浏览 25
已采纳

Symfony 2.1控制台不显示所有错误

I'm creating a console command in Symfony 2.1.

While developing this I am having issues with errors being swallowed.

Some errors bubble up and display fine others just cause the application to exit without displaying anything.

In the example below getFile is a function but there is no error regarding the missing brackets. The script simply exits.

$this->extract($file->getFile->getPathname());

I have set error level to E_ALL | E_STRICT and ensured that Display errors in on in the cli version of php.ini.

How do I get PHP to display the errors?

  • 写回答

1条回答 默认 最新

  • dongmeiba6151 2012-09-14 18:29
    关注

    I found the cause of this, it was a try catch block within my own code swallowing the error.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥50 树莓派安卓APK系统签名
  • ¥15 maple软件,用solve求反函数出现rootof,怎么办?
  • ¥65 汇编语言除法溢出问题
  • ¥15 Visual Studio问题
  • ¥20 求一个html代码,有偿
  • ¥100 关于使用MATLAB中copularnd函数的问题
  • ¥20 在虚拟机的pycharm上
  • ¥15 jupyterthemes 设置完毕后没有效果
  • ¥15 matlab图像高斯低通滤波
  • ¥15 针对曲面部件的制孔路径规划,大家有什么思路吗