🧰 Engineering Essentials · Debugging Craft
Debug production without stopping the world (Go)
Safe live diagnosis using flags, traces, and snapshots instead of restart roulette.
advanced~40 minAll Software Engineers
Steps
- 1Correlate user report to trace IDs through gateway → service → data layer
- 2Capture state non-invasively: heap/profile snapshots over process restarts
- 3Enable dynamic log levels temporarily rather than redeploying
- 4Test hypotheses against staging replicas of prod data shape
- 5Timebox live debugging; mitigate via rollback/flag if past window
- 6Write postmortem linking timeline to evidence artifacts
- 7Run pprof profiles; check goroutine leaks with goleak
- 8Enforce vet/lint gates; keep error wrapping with %w intact
Common Pitfalls
- ▲Restarting away evidence mid-diagnosis
- ▲Debugging against sanitized data missing the trigger shape
Commands
Install with skills CLI
$ npx skills add aniruddhaadak80/skills --skill debug-craft-production-debugging-goInstall globally
$ npx skills add aniruddhaadak80/skills --skill debug-craft-production-debugging-go -gTags
#debugging#production#observability#engineering-essentials#debug-craft