From 2ce587b1e06989ab5721da11811613337701a24c Mon Sep 17 00:00:00 2001 From: Dom Date: Fri, 6 Feb 2026 14:38:43 +0000 Subject: [PATCH] again --- launch.json | 14 ++++++++++++++ main.py | 6 ++++++ 2 files changed, 20 insertions(+) create mode 100644 launch.json diff --git a/launch.json b/launch.json new file mode 100644 index 0000000..536e256 --- /dev/null +++ b/launch.json @@ -0,0 +1,14 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Attach to Docker (melesICUmover)", + "type": "python", + "request": "attach", + "connect": { + "host": "localhost", + "port": 5678 + } + } + ] +} diff --git a/main.py b/main.py index cecc8ab..19a79aa 100644 --- a/main.py +++ b/main.py @@ -20,6 +20,12 @@ import pytesseract import yaml +if os.environ.get("DEBUG") == "1": + import debugpy + debugpy.listen(("0.0.0.0", 5678)) + print("Waiting for debugger...") + debugpy.wait_for_client() + # -----------------------