Skip to content

Instantly share code, notes, and snippets.

@only-entertainment
Last active December 16, 2015 12:09
Show Gist options
  • Save only-entertainment/5432505 to your computer and use it in GitHub Desktop.
Save only-entertainment/5432505 to your computer and use it in GitHub Desktop.
Quick way to get a pdb breakpoint
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