From e23179a88be577ca6ba1a7fc6f387104a07362f7 Mon Sep 17 00:00:00 2001 From: Gemma <58080601+gememma@users.noreply.github.com> Date: Wed, 31 Jul 2024 17:15:13 +0100 Subject: [PATCH] Add config type debugpy for detecting debugger port (#138) * Add config type debugpy for detect debugger port env var * Pin towncrier to 23.11.0 to mitigate breaking update --- .github/workflows/ci.yaml | 2 +- changelog.d/137.fixed.md | 1 + src/debugger.ts | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 changelog.d/137.fixed.md diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7dd45913..4dcf7539 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -24,7 +24,7 @@ jobs: with: fetch-depth: 0 - name: install towncrier - run: pip install towncrier + run: pip install towncrier==23.11.0 - name: verify newsfragment exist run: towncrier check diff --git a/changelog.d/137.fixed.md b/changelog.d/137.fixed.md new file mode 100644 index 00000000..581bd1a0 --- /dev/null +++ b/changelog.d/137.fixed.md @@ -0,0 +1 @@ +Accept config type debugpy for detecting debugger port \ No newline at end of file diff --git a/src/debugger.ts b/src/debugger.ts index 437ba62d..f5ff2f7f 100644 --- a/src/debugger.ts +++ b/src/debugger.ts @@ -167,7 +167,7 @@ async function main( if (config.type === "go") { config.env["MIRRORD_SKIP_PROCESSES"] = "dlv;debugserver;compile;go;asm;cgo;link;git;gcc;as;ld;collect2;cc1"; - } else if (config.type === "python") { + } else if (config.type === "python" || config.type === "debugpy") { config.env["MIRRORD_DETECT_DEBUGGER_PORT"] = "debugpy"; } else if (config.type === "java") { config.env["MIRRORD_DETECT_DEBUGGER_PORT"] = "javaagent";