This image allows you to debug a go app just creating a volume pointing your app.
The recommended way is to set the session is using docker-compose.
note: while running in debug mode you need to connect the debugger client and your code will start running, you program execution will be blocked if you haven't connect your client.
GoLand
VS Code
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch",
"type": "go",
"request": "attach",
"mode": "remote",
"remotePath": "/go/app",
"port": 2345,
"env": {},
"args": [],
"showLog": true,
"trace": "verbose"
}
]
}
port will be 2345 y default, but if you changed it in the mapping process of the container it needs to be set here.
Content type
Image
Digest
Size
218.5 MB
Last updated
over 6 years ago
docker pull jsainthilaire/debug-go-docker-image