One thing I miss about working in Java is that the JVM comes out of the box with an interactive debugger. With just a few switches, you can enable a remote debugging session without having to do anything special with your build.
As far as I can tell, such a thing is not possible in Go, at least by default. This means that if you need to debug something running in something like Kubernetes, you either need to bundle something like
delve in your container — which might not be possible if you don’t control the entire build pipeline — or you’re out of luck and need to resort to print-level debugging.
✍️ Reply by email