Remove unnecessary code from debugger