-
Notifications
You must be signed in to change notification settings - Fork 29k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to trigger DisconnectArguments.terminateDebuggee #116081
Comments
@weinand assigning first to you, feel free to assign back to me and I can try to answer |
Yes, the behavior of DAP's "disconnect" can be controlled by the
Other DAP clients (e.g. Visual Studio?) might support the |
However unfortunate, it is what it is. Thank you for clearing this up. |
Please feel free to turn this issue into a feature request by proposing what VS Code should offer to make use of the terminateDebuggee property. |
BTW, there is another related DAP feature request: microsoft/debug-adapter-protocol#175 |
Great, thanks a lot! I will check it out and make a new feature request in vscode project if what I need isn't covered by that request. |
Please note that DAP feature requests are independent from VS Code because more clients use DAP and VS Code does not support every feature offered in DAP. |
I noticed the same unfortunate behavior in vscode. Setting SupportTerminateDebuggee in the adapter doesn't seem to expose any additional controls to the user. The fact that vscode doesn't use this capability is not clear. For example this update from 2017 says +1 to supporting this feature. In the UI this could be supported as a dropdown next to the detach button or as two different buttons. |
I agree very much with @polinasok. I have also created a feature request a while back: #116731. |
We are planning to implement feature #116731 in April. @polinasok please note, that capabilities like
So a client can use this, but clients are not required to do so (and older clients could not even know that this feature exists). |
Hello. I am currently maintaining the xdebug/vscode-php-debug extension and wanted to implement a feature. When the PHP process and the debugger are attached the user should have two options to stop debugging:
There are a couple of interesting options in the debugSession.ts:
supportsTerminateRequest, supportsTerminateThreadsRequest supportTerminateDebuggee.
I was currently concentrating on getting DisconnectArguments.terminateDebuggee of disconnectRequest, but was unable to find a scenario where this argument would be present at all.
I was also unable to find any relevant source reference to it in vscode.
Perhaps it has also to do with the
request
filed injaunch.json
. Currently we always uselaunch
.What do I need to do, so that the user will have both options available to them: Detach/Disconnect and Stop/Terminate.
Thank you!
Does this issue occur when all extensions are disabled?: Does not apply
The text was updated successfully, but these errors were encountered: