code: def next(self):
          
          try:
              event = self.wait()
          except Exception:
              self.stop()
              raise
          try:
              self.dispatch()
          finally:
              self.cont()
docs: Handles the next debug event.
  
          @see: L{cont}, L{dispatch}, L{wait}, L{stop}
  
          @raise WindowsError: Raises an exception on error.
  
              If the wait operation causes an error, debugging is stopped
              (meaning all debugees are either killed or detached from).
  
              If the event dispatching causes an error, the event is still
              continued before returning. This may happen, for example, if the
              event handler raises an exception nobody catches.