Implementing commands: debug and undebug