Currently, the debug mode simply enables stack traces on exceptions. More events should be logged at varying verbosity depending on the debug mode.