also load error handler if debugging is enabled
if debugging is enabled we log everything