Examples/modpython_dbg.py@0e96e1557c45
Examples/modpython_dbg.py
Sun, 23 Oct 2016 23:12:49 +0200
- author
- T.Rzepka <Tobias.Rzepka@gmail.com>
- date
- Sun, 23 Oct 2016 23:12:49 +0200
- changeset 5269
- 0e96e1557c45
- parent 0
-
de9c2efb9d02
- permissions
- -rw-r--r--
Fix for PyPy showing no local variables and suppress exception on old frames.
from mod_python import apache
apache.initDebugger('/Path/To/modpython_dbg.py')
def handler(req):
req.content_type = "text/plain"
req.send_http_header()
req.write("Hello World!\n")
return apache.OK