Advertisement
johnlockwood

gaepdb.py

Aug 13th, 2012
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. def set_trace():
  2.     import pdb, sys
  3.     sys.stdout = sys.__stdout__
  4.     sys.stdin = sys.__stdin__
  5.     debugger = pdb.Pdb()
  6.     debugger.set_trace(sys._getframe().f_back)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement