Skip to content

Instantly share code, notes, and snippets.

@torufurukawa
Created January 7, 2012 03:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save torufurukawa/1573645 to your computer and use it in GitHub Desktop.
Save torufurukawa/1573645 to your computer and use it in GitHub Desktop.
pdb.set_trace alternative for Google App Engine
def set_trace():
import pdb, sys
debugger = pdb.Pdb(stdin=sys.__stdin__,
stdout=sys.__stdout__)
debugger.set_trace(sys._getframe().f_back)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment