Thanks!
Since web2py proper debugging works fine through pretty much any IDE,
I'm mainly looking for how to debug GAE-only issues. It turns out
that that's easier said than done -- even pdb has some issues running
through GAE.
Here's how I got pdb to work from the GAE environment:
import pdb, sys
debugger = pdb.Pdb(stdin=sys.__stdin__,
stdout=sys.__stdout__)
debugger.set_trace()
This mostly works, except that you can't actually see your position in
the current frame using 'list'. But at least it lets me step through
the code line-by-line and inspect variables, which is what I'm mainly
looking for.
Jon
On May 1, 11:13 am, Keith Edmunds <[email protected]> wrote:
> I don't run web2py.py under the debugger. I just put the following where I
> want the first breakpoint:
>
> import pydb
> pydb.debugger()
>
> ...which drops into the debugger when encountered. No GUI, but I believe
> you can hook up DDD to pydb if you are so inclined. Whether that works on
> GAE or not, I don't know.