PTVS(python tools for Visual Studio) http://pytools.codeplex.com/ is a python plugin for Visual studio (like PyDev for Eclipse)
GAE local debug starts from <dev_appserver.py> which located in GAE installation path. dev_appserver command line document is here: http://code.google.com/appengine/docs/python/tools/devserver.html
After write GAE code in VS, we prefer trigger it from VS, that make VS as an integrated environment as it should be.
1, configure debug command:
startup file should be <dev_appserver.py>
argument indicated port and project position
2, press F5, let it go…
you’ll meet a lot of exception, it seems some problems in module loader. Anyway, it’s not exception from our code.
3, add this exception in ignore list.
open menu <Debug> <Exceptions…>
add the exception name “google.appengine.dist.py_zipimport.ZipImportError” under Python Exceptions, and uncheck the “User-unhandled” checkbox.
4, OK, you can take off now!
No comments:
Post a Comment