Initial support for debug/undebug and monitor/unmonitor (not finished yet)