Created
April 6, 2013 05:48
-
-
Save c0ldlimit/5325027 to your computer and use it in GitHub Desktop.
#python #ipython Put into startup folder in profile_default for better debugging
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
import sys | |
def set_trace(): | |
from IPython.core.debugger import Pdb | |
Pdb(color_scheme='Linux').set_trace(sys._getframe().f_back) | |
def debug(f, *args, **kwargs): | |
from IPython.core.debugger import Pdb | |
pdb = Pdb(color_scheme='Linux') | |
return pdb.runcall(f, *args, **kwargs) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment