johnlockwood

gaepdb.py

Jan 19th, 2012
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 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)
Add Comment
Please, Sign In to add comment