DebugClients/Python/DebugBase.py

changeset 5273
be55746da9d1
parent 5263
50a03ff54b15
child 5274
a19743a4a8fa
equal deleted inserted replaced
5272:5684dd6667e6 5273:be55746da9d1
101 self.setRecursionDepth(inspect.currentframe()) 101 self.setRecursionDepth(inspect.currentframe())
102 102
103 # background task to periodicaly check for client interactions 103 # background task to periodicaly check for client interactions
104 self.eventPollFlag = False 104 self.eventPollFlag = False
105 self.timer = _thread.start_new_thread(self.__eventPollTimer, ()) 105 self.timer = _thread.start_new_thread(self.__eventPollTimer, ())
106
107 # provide a hook to perform a hard breakpoint
108 # Use it like this:
109 # if hasattr(sys, 'breakpoint): sys.breakpoint()
110 sys.breakpoint = self.set_trace
106 111
107 def __eventPollTimer(self): 112 def __eventPollTimer(self):
108 """ 113 """
109 Private method to set a flag every 0.5 s to check for new messages. 114 Private method to set a flag every 0.5 s to check for new messages.
110 """ 115 """

eric ide

mercurial