This commit is contained in:
Massimo Di Pierro
2012-02-19 22:30:59 -06:00
parent cf9c827661
commit 4f1d3e79b4
12 changed files with 353 additions and 7 deletions
+5 -3
View File
@@ -490,6 +490,11 @@ def wsgibase(environ, responder):
# run controller
# ##################################################
if global_settings.debugging and request.application != "admin":
import gluon.debug
# activate the debugger and wait to reach application code
gluon.debug.dbg.do_debug(mainpyfile=request.folder)
serve_controller(request, response, session)
except HTTP, http_response:
@@ -591,9 +596,6 @@ def wsgibase(environ, responder):
if response and hasattr(response, 'session_file') \
and response.session_file:
response.session_file.close()
# if global_settings.debugging:
# import gluon.debug
# gluon.debug.stop_trace()
session._unlock(response)
http_response, new_environ = rewrite.try_rewrite_on_error(