Implemented DebugListener to redirect debug messages to Windows debugger.