Example #1
0
 def startup(self):
     "Initialization procedures (called by the backend)"
     # notification sent by _runscript before Bdb.run
     self.LoadBreakpoints()
     print("enabling call_stack and environment at interaction")
     self.set_params(dict(call_stack=True, environment=True, postmortem=True))
     # return control to the backend:
     Frontend.startup(self)
Example #2
0
    def __init__(self, pipe=None, breakpoints=None):
        Frontend.__init__(self, pipe)
        self.messages_queue = Queue()
        if breakpoints:
            self._breakpoints = breakpoints
        else:
            self._breakpoints = set()

        self.interacting = False  # flag to signal user interaction
        self.quitting = False  # flag used when Quit is called
        self.attached = False  # flag to signal remote side availability
        self.post_event = True  # send event to the GUI
        self.start_continue = True  # continue on first run
        self.rawinput = None
        self.filename = self.lineno = None
        self.unrecoverable_error = False
        self.pipe = None

        t = threading.Thread(target=self._run)
        t.start()