示例#1
0
 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)
示例#2
0
 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)
示例#3
0
文件: vipdb.py 项目: sacre/dotfiles
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)