Add 'debug' event to main instance. This makes all debug honor whether debug is on or not