Created
March 11, 2014 23:00
-
-
Save stuntgoat/9496828 to your computer and use it in GitHub Desktop.
debug a function call. Put this in your ipython startup file.
This file contains hidden or 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
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