From 27c7971dd426cd76722116c74de6f2e6cecb5c7e Mon Sep 17 00:00:00 2001 From: Jose Benito Gonzalez Lopez Date: Fri, 14 Oct 2016 09:43:48 +0200 Subject: [PATCH] debug: enabled remote debugging with wdb * Adds a needed environment variable to wsgi in order to be able to use wdb Signed-off-by: Jose Benito Gonzalez Lopez --- modules/webstyle/lib/invenio.wsgi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/webstyle/lib/invenio.wsgi b/modules/webstyle/lib/invenio.wsgi index db65379913..9d1fba91d3 100644 --- a/modules/webstyle/lib/invenio.wsgi +++ b/modules/webstyle/lib/invenio.wsgi @@ -28,6 +28,10 @@ if CFG_DEVEL_SITE: remote_debugger.start_file_changes_monitor() except: pass + # enable remote debuggin with wdb + import os + os.environ['WDB_NO_BROWSER_AUTO_OPEN'] = 'True' + # wrap warnings (usually from sql queries) to log the traceback # of their origin for debugging