PDB and AppEngine
Feb 7, 2009 · 1 minute readIt turns out App Engine breaks the default behaviour of the Python debugger PDB by sending STDOUT to the browser. But with a little bit of python you can put it back in.
pre. import sys import pdb for attr in (‘stdin’, ‘stdout’, ‘stderr’): setattr(sys, attr, getattr(sys, ‘s’ attr)) pdb.set_trace()