Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
6 lines (5 sloc) 159 Bytes
def set_trace():
import pdb, sys
debugger = pdb.Pdb(stdin=sys.__stdin__,
stdout=sys.__stdout__)
debugger.set_trace(sys._getframe().f_back)