Skip to content

Commit

Permalink
Merge pull request #31 from bento-platform/qa/v0.5
Browse files Browse the repository at this point in the history
Qa/v0.5
  • Loading branch information
ppillot authored Aug 22, 2022
2 parents 48a5263 + fe4982d commit dda2986
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
16 changes: 10 additions & 6 deletions chord_drs/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,13 @@

# # debugger section
# Ensure 'debugpy' is installed (via requirements.txt or manually)
if os.environ.get('FLASK_DEBUG', False):
import debugpy
DEBUGGER_PORT = int(os.environ.get('DEBUGGER_PORT', 5678))
debugpy.listen(("0.0.0.0", DEBUGGER_PORT))
print('Attached')
# # end debugger section
DEBUG = os.environ.get('FLASK_DEBUG', False)
if DEBUG:
try:
import debugpy
DEBUGGER_PORT = int(os.environ.get('DEBUGGER_PORT', 5678))
debugpy.listen(("0.0.0.0", DEBUGGER_PORT))
print('\nDebugger Attached\n')
except ImportError:
print("\nWARNING Module debugpy not found. To enable VSCode debugging, run:\n\tpip install debugpy\n")
# # end debugger section
2 changes: 1 addition & 1 deletion chord_drs/package.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = chord_drs
version = 0.5.2
version = 0.5.3
authors = Simon Chénard, David Lougheed
author_emails = simon.chenard2@mcgill.ca, david.lougheed@mail.mcgill.ca

0 comments on commit dda2986

Please sign in to comment.