From f689b4b7eb551ff94de4602e848a979788c91b96 Mon Sep 17 00:00:00 2001 From: ArabCoders Date: Tue, 27 Feb 2024 17:17:58 +0300 Subject: [PATCH] mark the main process to make it easier to pick process for debug --- .vscode/launch.json | 6 ++++++ Dockerfile | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 64a27dee..aec48f1b 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -34,6 +34,12 @@ "YTP_URL_HOST": "http://localhost:8081", "YTP_LOG_LEVEL": "DEBUG" } + }, + { + "name": "Python: attach to process.", + "type": "debugpy", + "request": "attach", + "processId": "${command:pickProcess}", } ] } diff --git a/Dockerfile b/Dockerfile index 0ea0dd14..2737937f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -67,4 +67,4 @@ HEALTHCHECK --interval=10s --timeout=20s --start-period=10s --retries=3 CMD [ "/ ENTRYPOINT ["/entrypoint.sh"] -CMD ["/app/.venv/bin/python", "/app/app/main.py"] +CMD ["/app/.venv/bin/python", "/app/app/main.py", "--mainprocess"]