Skip to content

Core\Debugger

Fariz Luqman edited this page Jun 29, 2016 · 2 revisions

The Debugger

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.

Visit our website for tutorials: stupidlysimple.github.io

Clone this wiki locally