This is the setup that worked for me after half a day of hacking around and chasing rabbit holes down old forum posts and open & closed Github issues.
Problem: While Go integration with VS Code is pretty slick in general, I needed to
pass compile-time build flags, e.g., -tags foo
[^1] to go build
and go run
directives, and I wanted to be able to properly debug with breakpoints etc. While there
are some promising tutorials out there like this on Digital Ocean and on Log Rocket it turned
out that one of the first things they both say to do is add the Delve extension to VS Code,