🧰 Engineering Essentials · Debugging Craft
Debug production without stopping the world (Rust)
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
- 7Let the borrow checker guide design; resist RefCell escapes
- 8Benchmark criterion suites for hot paths before optimizing
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-rustInstall globally
$ npx skills add aniruddhaadak80/skills --skill debug-craft-production-debugging-rust -gTags
#debugging#production#observability#engineering-essentials#debug-craft