Advanced debugging in golang
summary
Covers concrete debugging recipes: use Delve headless on :40000 to remote-debug containers and Kubernetes, build a multistage image with Delve and mount sources so DWARF maps lines; run debugging of tests and CLI binaries, set breakpoint with condition and call functions during debugging or set variables to avoid recompiles. Notes GDB for stepping into C bindings and inspecting memory/slices, disable DWARF in production (-w) and disable compressed DWARF for some GDB workflows, and mentions Mozilla record‑and‑replay for reverse debugging.
AI-written summary · about
