realtekme
realtekme

Reputation: 353

how to enable error reporting in laravel 4.2 for debugging

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?

Upvotes: 6

Views: 16080

Answers (3)

Santosh Achari
Santosh Achari

Reputation: 3006

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.

Upvotes: 2

Laurence
Laurence

Reputation: 60058

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

Upvotes: 13

George G
George G

Reputation: 7695

are you sure you set debug state?

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

Upvotes: 3

Related Questions