Properly erase/remove a DebuggerObserver

`erase` only takes iterator(s). If you want to remove based on value, you have to do it like this.