Skip to content

Instantly share code, notes, and snippets.

@stuntgoat
Created March 11, 2014 23:00
Show Gist options
  • Save stuntgoat/9496828 to your computer and use it in GitHub Desktop.
Save stuntgoat/9496828 to your computer and use it in GitHub Desktop.
debug a function call. Put this in your ipython startup file.
def dbgf(f, *args, **kwargs):
"""
Debug a function call.
"""
import pdb; pdb.set_trace()
f(*args, **kwargs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment