parameters: (self, wait=None)
docstring: Deal with the debugger exiting.
docstring_summary: Deal with the debugger exiting.
docstring_tokens: Deal with the debugger exiting .
function: def handle_debugger_stopped(self, wait=None):
          """Deal with the debugger exiting."""
          # Notify the editor that the debugger has stopped.
          if not self._debugging:
              # TODO: Fail?  If this gets called then we must be debugging.
              return
  
          # We run this in a thread to allow handle_exiting() to be called
          # at the same time.
          def stop():
              if wait is not None:
                  wait()
              # Since pydevd is embedded in the debuggee process, always
              # make sure the exited event is sent first.
              self._wait_until_exiting(self.EXITWAIT)
              self._ensure_debugger_stopped()
          t = _util.new_hidden_thread(
              target=stop,
              name='stopping',
              daemon=False,
          )
          t.start()
function_tokens: def handle_debugger_stopped ( self , wait = None ) : # Notify the editor that the debugger has stopped. if not self . _debugging : # TODO: Fail?  If this gets called then we must be debugging. return # We run this in a thread to allow handle_exiting() to be called # at the same time. def stop ( ) : if wait is not None : wait ( ) # Since pydevd is embedded in the debuggee process, always # make sure the exited event is sent first. self . _wait_until_exiting ( self . EXITWAIT ) self . _ensure_debugger_stopped ( ) t = _util . new_hidden_thread ( target = stop , name = 'stopping' , daemon = False , ) t . start ( )