-
Notifications
You must be signed in to change notification settings - Fork 31
Core\Debugger
Fariz Luqman edited this page Jun 29, 2016
·
2 revisions
Provides the developer with useful messages in case of an exception or errors happen.
You can set the level of error debugging in the config\env.php
file:
return
[
/*
* Set debugging level
* 0 - Turn off debugging. Show "Something went wrong" message ambiguously
* 1 - Show simple error message, file and the line occured
* 2 - Advanced debugging with code snippet, stack frames, and envionment details
*/
'DEBUG' => 1,
If set to 0
or 1
, the debugger will register the local error handler
, while 2
will register flip\Whoops
as the error handler.