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() + # -----------------------