D
dan.gass
Is there a way to temporarily halt execution of a script (without using
a debugger) and have it put you in an interactive session where you
have access to the locals? And possibly resume? For example:
.... x = 1
.... magic_breakpoint()
.... y = 1
.... print "got here"
....Traceback (most recent call last):
File "<stdin>", line 1, in ?
Traceback (most recent call last):
Traceback (most recent call last):
File "<stdin>", line 1, in ?
NameError: name 'x' is not defined
a debugger) and have it put you in an interactive session where you
have access to the locals? And possibly resume? For example:
.... x = 1
.... magic_breakpoint()
.... y = 1
.... print "got here"
....Traceback (most recent call last):
File "<stdin>", line 1, in ?
Traceback (most recent call last):
Traceback (most recent call last):
File "<stdin>", line 1, in ?
NameError: name 'x' is not defined