microsoft / debug-adapter-protocol

Defines a common protocol for debug adapters.
https://microsoft.github.io/debug-adapter-protocol/
Other
1.39k stars 129 forks source link

Debug adapters can notify VSCode about out-of-band line breakpoints but not command breakpoints #223

Open rkeithhill opened 6 years ago

rkeithhill commented 6 years ago

I work on the PowerShell debug adapter and that adapter provides a REPL while debugging. In the PowerShell Integrated Console during debugging, a user can use a PowerShell command Set-PSBreakpoint to set both line and function breakpoints. On the line breakpoints we can use the BreakpointEvent to communicate this back to VSCode;

https://github.com/Microsoft/vscode-debugadapter-node/blob/b61cf04501cfe7356b695f99bc60961684f89a4f/protocol/src/debugProtocol.ts#L179-L189

However I'm not finding an equivalent event for function breakpoints. What am I missing? Or is this missing from the debug protocol?

weinand commented 6 years ago

This is missing.