Beispiel #1
0
 def _start_event_loop(self):
     self.loop = futures.EventLoop()
     self.event_loop_thread = _util.new_hidden_thread(
         target=self.loop.run_forever,
         name='EventLoop',
     )
     self.event_loop_thread.start()
Beispiel #2
0
 def __init__(self, socket, pydevd, logfile=None, killonclose=True):
     super(VSCodeMessageProcessor, self).__init__(socket=socket,
                                                  own_socket=False,
                                                  logfile=logfile)
     self.socket = socket
     self.pydevd = pydevd
     self.killonclose = killonclose
     self.is_process_created = False
     self.is_process_created_lock = threading.Lock()
     self.stack_traces = {}
     self.stack_traces_lock = threading.Lock()
     self.active_exceptions = {}
     self.active_exceptions_lock = threading.Lock()
     self.thread_map = IDMap()
     self.frame_map = IDMap()
     self.var_map = IDMap()
     self.bp_map = IDMap()
     self.next_var_ref = 0
     self.loop = futures.EventLoop()
     self.exceptions_mgr = ExceptionsManager(self)
     self.disconnect_request = None
     self.launch_arguments = None
     self.disconnect_request_event = threading.Event()
     pydevd._vscprocessor = self
     self._closed = False
     self.path_casing = PathUnNormcase()
     self.event_loop_thread = threading.Thread(target=self.loop.run_forever,
                                               name='ptvsd.EventLoop')
     self.event_loop_thread.daemon = True
     self.event_loop_thread.start()