Skip to content

Commit

Permalink
Add config type debugpy for detecting debugger port (metalbear-co#138)
Browse files Browse the repository at this point in the history
* Add config type debugpy for detect debugger port env var

* Pin towncrier to 23.11.0 to mitigate breaking update
  • Loading branch information
gememma authored Jul 31, 2024
1 parent ed38041 commit e23179a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions changelog.d/137.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Accept config type debugpy for detecting debugger port
2 changes: 1 addition & 1 deletion src/debugger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit e23179a

Please sign in to comment.