Refactoring debuging