-
Notifications
You must be signed in to change notification settings - Fork 132
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
How does the debugger notify dap client that a breakpoint is disabled? #463
Comments
There's no "disabled" state in DAP. In VS Code, a disabled breakpoint is simply not sent to the debugger. |
it is OK from editor to debugger. what about from debugger to editor? |
That's correct, the debug adapter does not control the breakpoint enablement state. If it fails to set a breakpoint, it can signal that by marking it as unverified with a message. But the adapter is driven by the client, not the other way around. Is there a use case you have in mind where having the DA disable a breakpoint would be useful? |
As I know the unverified status is for pending. Could this be improved in future dap version? |
That sounds like something that clients should implement in their "debug console"s rather than in DAP. |
when I input CMD in debug console, it's a "evaluate" REQ, I think the client don't understand these CMD. |
That is up to the client. There's no requirement in the protocol that a debug console exists or how it should behave. There is no notion of disabled breakpoints in DAP. And I would not implement it the way you describe e.g. in VS Code, because it would not play nice if there were multiple concurrent debug sessions happening at the same time: a UI breakpoint is not owned by a debug adapter. It sounds like the way to do what you want would just be to set |
Yes, something like this. Currently, just set "verified: false" the checkbox is still checked in VS code UI. /**
/**
|
for example, using gdb in vscode:
I haven't found the enable or disable field in Breakpoint type.
The text was updated successfully, but these errors were encountered: