i have a python module with a function:
def do_stuff(param1 = \'a\'): if type(param1) == int: # enter python interpreter here do_somethin
Inserting
import pdb; pdb.set_trace()
will enter the python debugger at that point
See here: http://docs.python.org/library/pdb.html