-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Attach :GoDebugStart to a running dlv process #1758
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
Comments
What problems did you face specifically? I think it shouldn't be too hard to do? But yeah, this is a reasonable feature to add support for. |
@Carpetsmoker We didn't try that hard, we only spent a bunch of minutes and tried to replace the I don't think that the start a container or any script with vim-go is a good approach, I think the way to go is to be able to connect to a remote delve server. I think that the main things to figure out while doing this are:
|
To be clear, I'll be happy to review/test any patch, but this is not something I'll be working on any time soon.
Doing remote debugging is not something I ever thought about while writing this. I'm a simple guy, and just write/compile Go code from |
Hello @Carpetsmoker don't worry. I am not asking you to write anything obviously. This issue is just to track a feature request to see if we are the unique 2 developers that are doing this kind of flow :) Or maybe somebody has an easy way to achieve the same behavior with the current implementation. |
+1 would really love to have this as a feature |
Add :GoDebugAttach to be able to attach to a running process. Closes fatih#1758
Add :GoDebugAttach to be able to attach to a running process. Closes fatih#1758
Add :GoDebugAttach to be able to attach to a running process. Closes fatih#1758
Add :GoDebugAttach to be able to attach to a running process. Closes fatih#1758
Add :GoDebugAttach to be able to attach to a running process. Closes fatih#1758
Add :GoDebugAttach to be able to attach to a running process. Closes fatih#1758
Add :GoDebugAttach to be able to attach to a running process. Closes fatih#1758
Add :GoDebugAttach to be able to attach to a running process. Closes fatih#1758
Hello!
This is probably a big request but I started to investigate and hack around it so, I am opening this issue with my considerations.
:GoDebugStart
builds and start a new dlv process by default on port 8181, in one of my project I am using docker because I have dependencies and it was the current flow for me and my team.So, we start the
dlv
process inside a Docker container, with @fntlnz we spent half an hour hacking a bit thedebug.vim
code to jokevim-go
in order to allow :GoDebugStart to connect to the port:8181
without rebuilding the dlv process.It didn't end up well, I think we need more than 30 minutes, this issue is just to start a discussion because I think other people have the same workflow.
The text was updated successfully, but these errors were encountered: