Well, what do you mean by "output in the shell" ?
Do you see pdb prompt in terminal?
>From pdb prompt you may inspect objects by typing "pp <something>"
If you want to print something to terminal during program execution,
you probably have to send it to the standard error like this:
import sys;sys.stderr.write('Hello!')
It depends on the way how you executed dev_appserver.py and if you did
any output redirections.
I would use logging module instead...
---
If you are on OSX, you may try to run this project and debug main():
http://github.com/darwin/drydrop/tree/master
add these lines into main() in drydrop_handler.py
import sys;sys.stderr.write('Hello from main!')
import drydrop.lib.dbg;drydrop.lib.dbg.b()
run:
rake edge_gae
rake
it starts dev server in new terminal window with title "DryApp",
go to http://localhost:8080/
and then see "DryApp" terminal tab
debugger works even without patching GAE SDK
hmm, strange
anyway, this may be good example, I've just tested it here on my machine
Antonin
On Mon, Jan 26, 2009 at 9:47 PM, Mat <[email protected]> wrote:
>
> Thanks Antonin,
> I am almost there...
> Now it is working only the "first pass" when I hit the server, all the
> following requests will also raise the debugger but won't be able to
> output in the shell.
> Do you have an idea why?
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---