Created
January 7, 2012 03:11
-
-
Save torufurukawa/1573645 to your computer and use it in GitHub Desktop.
pdb.set_trace alternative for Google App Engine
This file contains hidden or 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(): | |
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