Skip to content
Myr

Added GAE debugging snippet

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent ec9e8eb · Browse files · 1 file+12 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+12 added−0 removed

  • other:+12 added−0 removed

1 file+12 added−0 removed

modified:docs/faq.rst+12 added
151 unmodified lines
152the traceback may be incomplete. There is currently no good workaround153for Jython or the AppEngine as ctypes is unavailable there and it's not154possible to use the debugsupport extension.155156If you are working in the Google Appengine development server you can157whitelist the ctypes module to restore the tracebacks. This however won't158work in production environments::159160 import os161 if os.environ.get('SERVER_SOFTWARE', '').startswith('Dev'):162 from google.appengine.tools.dev_appserver import HardenedModulesHook163 HardenedModulesHook._WHITE_LIST_C_MODULES += ['_ctypes', 'gestalt']164165Credit for this snippet goes to `Thomas Johansson166<http://stackoverflow.com/questions/3086091/debug-jinja2-in-google-app-engine/3694434#3694434>`_167168Why is there no Python 2.3 support?169-----------------------------------170171Python 2.3 is missing a lot of features that are used heavily in Jinja2. This
32 unmodified lines