Skip to content

Commit

Permalink
Fixed debugger not attaching when running Flask apps (#108)
Browse files Browse the repository at this point in the history
* Fixed debugger not attaching when running Flask apps

* ok gee semicolon ok
  • Loading branch information
aviramha authored Feb 21, 2024
1 parent acd761f commit 2f8f537
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions changelog.d/+fix-attach-python.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed debugger not attaching when running Flask apps
7 changes: 3 additions & 4 deletions src/debugger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,10 @@ async function main(
return config;
}

// Sometimes VSCode launches then attaches, so having a warning/error here is confusing
// We used to return null in that case but that failed the attach.
if (config.request === "attach") {
new NotificationBuilder()
.withMessage("mirrord cannot be used with `attach` launch configurations")
.error();
return null;
return config;
}

// For some reason resolveDebugConfiguration runs twice for Node projects. __parentId is populated.
Expand Down

0 comments on commit 2f8f537

Please sign in to comment.