You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.
I believe this PR #2125 suppose to support attaching and detaching from remote debug server without killing the process. However, when I host the GO process with delve in a docker, the remote debug process still killed the remote process.
Here is my vs code launch.json:
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Attach: Debug users service",
"type": "go",
"request": "attach",
"mode": "remote",
"remotePath": "/go/src/app",
"cwd":"${workspaceFolder}/users",
"port": 2345,
"host": "127.0.0.1",
// "debugServer": 4711,
"apiVersion": 2
}
]
}
Originally I think this should be a bug in delve so I created issue go-delve/delve#1587 . However, they mentioned in the comment(go-delve/delve#1587 (comment)) that detach will terminate the debugger process and what should happen is resume the process and then disconnect.
Thank you for your help.
The text was updated successfully, but these errors were encountered:
Unfortunately #2125 only allowed attaching to local process.
delve's attach command expects a process id and only works on local processes as far as I know.
I have responded on the thread you have opened in delve. I am not sure what the right approach here is.
@ramya-rao-a@BaronChen In the case of debugging a remote process with --accept-multiclient, I think the debugger should just send a continue request and disconnect from the socket so it won't kill the debuggee?
I believe this PR #2125 suppose to support attaching and detaching from remote debug server without killing the process. However, when I host the GO process with delve in a docker, the remote debug process still killed the remote process.
Here is my vs code launch.json:
delve is running with:
And the delve log:
Originally I think this should be a bug in delve so I created issue go-delve/delve#1587 . However, they mentioned in the comment(go-delve/delve#1587 (comment)) that detach will terminate the debugger process and what should happen is resume the process and then disconnect.
Thank you for your help.
The text was updated successfully, but these errors were encountered: