-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Debug Adapter Protocol #1515
Comments
If you want to implement this you can take a look at https://github.com/go-delve/delve/blob/master/service/rpc2/server.go. It would just be a matter of implementing the protocol and hooking it up to a command line command in https://github.com/go-delve/delve/blob/master/cmd/dlv/cmds/commands.go |
Yep, started looking in that direction. Would you consider this a separate project or an addition to delve, like |
I think it would be fine to have a subcommand, like |
@aarzilli a potential issue with a new command like It almost seems like DAP could be a new "API version", like:
What do you think? |
I was proposing the I don't think there's any problem with changing the type of api-version to be a string. |
@dsvensson are you planning to work on this? If not I'd be happy to take it on. |
I believe work on this is being currently done by google employees. |
@alur Not relevant to me any longer. But seems to be in good hands. ^^^ |
As @aarzilli points out, it's being worked on. We began by implementing a standalone module for handling the DAP protocol at https://github.com/google/go-dap (this repo is open now). We're currently working on a prototype of integrating this into Delve, which we'll likely send out as a PR that can be discussed with the Delve maintainers. Once the general direction is approved, we'll work on getting the rest of the implementation working. |
We have merged support for a DAP server. Work is still ongoing, but I think the spirit of this issue is resolved. |
Not sure if it would be better to have something like this external to Delve, but a sibling project to the Language Server Protocol is starting to take form, in Debug Adapter Protocol. This is something that is rapidly gaining support in Emacs, but most servers are currently ripped out from Visual Studio Code plugins. There's currently a wrapper around delve for making it conform to DAP in Visual Studio Code. It's written in TypeScript, so it adds an extra universe of dependencies. It would be nice to cut a few layers for a more lean integration.
Emacs dap-mode:
https://github.com/emacs-lsp/dap-mode
VSCode Delve wrapper, also used by Emacs dap-mode:
https://github.com/Microsoft/vscode-go/tree/master/src/debugAdapter
Debug Adapter Protocol:
https://microsoft.github.io/debug-adapter-protocol/
The text was updated successfully, but these errors were encountered: