Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Jan 24, 2023
1 parent 6b9299f commit 4abea13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chord_drs/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,10 @@
DEBUG = os.environ.get("FLASK_DEBUG", "false").strip().lower() in ("true", "1")
if DEBUG:
try:
# noinspection PyPackageRequirements
import debugpy
debugger_port = int(os.environ.get("DEBUGGER_PORT", "5678"))
debugpy.listen(("0.0.0.0", DEBUGGER_PORT))
debugpy.listen(("0.0.0.0", debugger_port))
application.logger.info("Debugger attached")
except ImportError:
application.logger.warning("Module debugpy not found. To enable VSCode debugging, run `pip install debugpy`")
Expand Down

0 comments on commit 4abea13

Please sign in to comment.