fixed Debugger.wrap_quoted

* also added some Debugger event logging.