refactoring debugger