This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# Python Interactive Breakpoint | |
import traceback, code | |
try: | |
raise None | |
except: | |
frame = sys.exc_info()[2].tb_frame | |
namespace = dict(frame.f_globals) | |
namespace.update(frame.f_locals) | |
code.interact(banner="Entering Interactive Session", local=namespace) |
NewerOlder