如何在laravel 4.2中启用错误报告以进行调试 [英] how to enable error reporting in laravel 4.2 for debugging

查看:74
本文介绍了如何在laravel 4.2中启用错误报告以进行调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚使用composer安装了新的laravel 4.2.我故意在router.php上犯了语法错误,以查看应用程序是否在我的浏览器屏幕上抛出了适当的异常,但是却得到了这个

I just have installed new laravel 4.2 using composer. I make syntax mistake deliberately on my router.php to see if an appropriate exception is thrown by the application on my browser screen, but instead a got this

糟糕,好像出了什么问题

.

我已经检查了app/config.ph p文件,并将"debug" = false更改为"debug" = true,但对我来说不起作用.我仍然收到相同的消息.

i have checked the app/config.php file and changed "debug" = false to "debug" = true and it is not worked for me. Still I am getting the same message.

是否有人知道如何配置laravel 4在屏幕上显示错误消息?

推荐答案

您需要更改app/config/local/app.php文件-并设置'debug' => true,

You need to change app/config/local/app.php file - and set 'debug' => true,

这篇关于如何在laravel 4.2中启用错误报告以进行调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆