dlv version local and remote: 1.1.0
go version remote: go version go1.11.2 linux/amd64
go version localhost: go version go1.11.2 darwin/amd64
docker container(docker run -p 2345:2345)...dlv debug app --headless --log --listen=:2345
dlv connect localhost:2345
But Vs Code do not work, it connects but do not stop at breakpoints?
{
// 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": "Remote",
"type": "go",
"request": "launch",
"mode": "remote",
"remotePath": "${workspaceRoot}",
"port": 2345,
"host": "localhost",
"program": "${workspaceRoot}",
"env": {}
}
]
}