Last active
December 16, 2015 12:09
-
-
Save only-entertainment/5432505 to your computer and use it in GitHub Desktop.
Quick way to get a pdb breakpoint
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
def set_trace(): | |
""" | |
Wrapper for ``pdb.set_trace``. | |
""" | |
from config import app | |
if not app.debug: return | |
import pdb | |
pdb.set_trace() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment