I didn't want to modify the DebugServer's prototype, but you are right, it is much cleaner like this. I've pushed the latest changes.