how to enable error reporting in laravel 4.2 for debugging

陌路散爱 提交于 2019-12-08 20:48:21

问题


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

Whoops, looks like something went wrong

.

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.

does any body know how to configure laravel 4 to display error message on my screen?


回答1:


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




回答2:


are you sure you set debug state?

because app/config.php does not seem right destination for laravel, but app/config/app.php




回答3:


If you are on windows, these additional steps might help.

  1. As other users have pointed, make sure on app/config/app.php

    'debug'=> true,

    1. Go to directory where the laravel folder is on powershell/ cygwin and run:

    php artisan serve

and then check the site on localhost:8000 to access the site. You can put a dummy url to check if it shows error.



来源:https://stackoverflow.com/questions/24731089/how-to-enable-error-reporting-in-laravel-4-2-for-debugging

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!