[google-appengine] Debugging with pdb() ?

2009-01-03 Thread Stuart Grimshaw

Call me old school, but I much prefer to do my debugging with pdb, I
really don't want to install Eclipse just to debug a small app like
this.

So, how do I get pdb running under the app engines local server? If I
include it as I usualle would (import pdb; pdb.set_trace()) I get a
500 server error and I can see the pdb prompt, how do I get it to halt
execution, and how do I attach to the debugger from the command line?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] BadArgumentError: _app must not be empty.

2009-01-06 Thread Stuart Grimshaw

I'm trying to get doctests running from inside of Textmate, and I've
got so far that I can run the tests, and they work as expected until I
try and put() the object, when I get the error above.

I'm using Aral Balkan's gae_doctest.py and I've added os.environ
['APPLICATION_ID'] = APP_ID as suggested in another post.

I've put gae_doctest in /Applications/GoogleAppEngineLauncher.app/
Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/
google_appengine/lib/ (which is symlinked to /usr/local/
google_appengine/lib

Any ideas?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---