def set_trace(self, frame=None): """ """ update_stdout() wrap_sys_excepthook() if frame is None: frame = sys._getframe().f_back #pdb = Tdb(def_colors) self.reset() self.set_step() sys.settrace(self.trace_dispatch)
def set_trace(frame=None): update_stdout() wrap_sys_excepthook() if frame is None: frame = sys._getframe().f_back pdb = Pdb(def_colors) # set hook pdb.shell.set_hook('synchronize_with_editor', synchronize_with_editor) pdb.set_trace(frame)