Remove useless debug statements
Initialize debugger earlier

Debugger is now the first thing to be initialized so that we can log errors in the settings file configuration etc.