-
-
Save ptim/66d8db8a1f1e82639e1d to your computer and use it in GitHub Desktop.
.pdbrc working with ipdb and PdbSublimeTextSupport
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
# http://stackoverflow.com/questions/12723375/python-line-highlight-on-sublime-text-2-from-ipdb | |
import pdb | |
from PdbSublimeTextSupport import preloop, precmd | |
pdb.Pdb.preloop = preloop | |
pdb.Pdb.precmd = precmd | |
try: | |
from ipdb.__main__ import Pdb as ipdb_Pdb | |
except ImportError: | |
pass | |
else: | |
ipdb_Pdb.preloop = preloop | |
ipdb_Pdb.precmd = precmd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment