Skip to content

Fix the supportTerminateDebuggee capability advertised by debugpy - #2099

Merged
Rich Chiodo (rchiodo) merged 1 commit into
microsoft:mainfrom
summerelm:fix/terminate-debuggee-capability
Nov 23, 2026
Merged

Rich Chiodo (rchiodo) merged 1 commit into
microsoft:mainfrom
summerelm:fix/terminate-debuggee-capability

Conversation

@summerelm

Copy link
Copy Markdown
Contributor

Background

#2098

Solution

Fixes #2098 by:

  1. Advertise supportTerminateDebuggee: true in the adapter's initialize response. The previous spelling, supportsTerminateDebuggee, leaves VS Code unable to discover that debugpy supports the terminateDebuggee argument.

The VS Code protocol's parameter can be found here https://github.com/microsoft/vscode/blob/733a99842b0e0e14c3593dfab31fff2035478ba0/src/vs/workbench/contrib/debug/common/debugProtocol.d.ts#L1806

I also did a search to make sure the incompatible supportsTerminateDebuggee name only appears once in this repo.

image

@summerelm
SummerElm (summerelm) requested a review from a team as a code owner November 22, 2026 00:57
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@summerelm

Copy link
Copy Markdown
Contributor Author

@microsoft-github-policy-service agree

@microsoft-github-policy-service agree

@rchiodo

Copy link
Copy Markdown
Contributor

Did you actually test it with VS code? This would open up a new capability in VS code, there might be something else missing as well.

@summerelm

Copy link
Copy Markdown
Contributor Author

Did you actually test it with VS code? This would open up a new capability in VS code, there might be something else missing as well.

Yes this works. I just did another run to collect some screenshots too

The stop button appears with this fix
image

Clicking stop disconnects and stops the heartbeat
image

These are exactly what stop needs to do.

@rchiodo

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@rchiodo
Rich Chiodo (rchiodo) merged commit 6655ea0 into microsoft:main Nov 23, 2026
23 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Stop action missing when attaching to debugpy (e.g. in VSCode)

2 participants