Skip to content

Instantly share code, notes, and snippets.

@anch0vy
Created September 22, 2015 19:59
Show Gist options
  • Save anch0vy/2e5c3ec13f0cf3515ebd to your computer and use it in GitHub Desktop.
Save anch0vy/2e5c3ec13f0cf3515ebd to your computer and use it in GitHub Desktop.
python debug code
def debug():
import inspect,code
frame = inspect.stack()[1][0]
code.interact(local=frame.f_locals)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment