DEV Community

Discussion on: Setup Go with VSCode in Docker and Air for debugging

Collapse
 
chrizthewiz profile image
Christian

Hey! Thanks for nice guide! Question though: when I use the exact setup above, my changes does not seem to be reflected when air reloads. It is reloading, but the changes are not there. I checked the docker-container and the files indeed were changed. If I removed delve from the equation, it works like a charm. Thoughts?

Collapse
 
andreidascalu profile image
Andrei Dascalu

Hm, I can't say I have this behaviour. I've updated my setup to Go 1.17 and running under Mac with latest air and delve I do have another issue, which is that while the reload works ok, the debug session needs to be manually stopped and restarted while clearing the breakpoints - which is another issue at the moment.
What is your setup like (OS, Docker version?)

Collapse
 
accexs profile image
Ronny Arvelo • Edited

i also have this problem, am using version 1.18, i thought it could be the that i wasn't following graceful shutdown procedure but i did whats on gin-gonic examples and that did not fixed it. I am getting this warning

2022/03/29 19:33:38 listen: listen tcp :8080: bind: address already in use

I changed 8181 port for 8080. I haven't tested breakpoints for Goland IDE.