moved common debugger code to base class