Skip to content

Commit

Permalink
debug: enabled remote debugging with wdb
Browse files Browse the repository at this point in the history
* Adds a needed environment variable to wsgi in order to be able to use
  wdb <https://github.com/Kozea/wdb>

Signed-off-by: Jose Benito Gonzalez Lopez <[email protected]>
  • Loading branch information
jbenito3 committed Oct 18, 2016
1 parent e48ec62 commit 27c7971
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/webstyle/lib/invenio.wsgi
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ if CFG_DEVEL_SITE:
remote_debugger.start_file_changes_monitor()
except:
pass
# enable remote debuggin with wdb <https://github.com/Kozea/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
Expand Down

0 comments on commit 27c7971

Please sign in to comment.