Improved encapsulation of DebugConsole