Method to change the debug state anytime

I load a config file in my project after the ExceptionHandler got instantiated.
Because of that I can't set the debug state depending of the config file.

These commits are allowing to change the debug state of the application anytime.