3 ms·
Ok, but isn't that true of print debugging too? Wherever the application is running, you have to recompile and redeploy it.
by commandlinefan 6y ago
Ok, but isn't that true of print debugging too? Wherever the application is running, you have to recompile and redeploy it.
- simiones 6y agoSure, but I'm talking about more than that. For example, my Go microservices run in containers built like this: FROM scratch COPY --from=build-container /go/bin/the-binary /go/bin/the-binary So, the final container only contains my Go binary and nothing else. If I add some debug logging, I just rebuild my binary, rebuild the container, and re-deploy. However, if I want to debug this, I need to use a different container that includes Go delve (the Go debugger) and any dependencies it relies on, possibly open some extra ports, deploy that container instead of the standard one etc.