⚡AgentSkills
🧰 Engineering Essentials · Debugging Craft

Debug production without stopping the world (Swift)

Safe live diagnosis using flags, traces, and snapshots instead of restart roulette.

advanced~40 minAll Software Engineers

Steps

  1. 1Correlate user report to trace IDs through gateway → service → data layer
  2. 2Capture state non-invasively: heap/profile snapshots over process restarts
  3. 3Enable dynamic log levels temporarily rather than redeploying
  4. 4Test hypotheses against staging replicas of prod data shape
  5. 5Timebox live debugging; mitigate via rollback/flag if past window
  6. 6Write postmortem linking timeline to evidence artifacts
  7. 7Adopt Swift Concurrency (async/await, actors) for data-race safety
  8. 8Profile Instruments templates: Time Profiler + Allocations together

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-swift
Install globally
$ npx skills add aniruddhaadak80/skills --skill debug-craft-production-debugging-swift -g

Tags

#debugging#production#observability#engineering-essentials#debug-craft

Related skills

Reproduce, bisect, hypothesize, verify — the method that beats random poking under deadline pressure.

🧰 Engineering Essentials·~30m

Reproduce, bisect, hypothesize, verify — the method that beats random poking under deadline pressure.

🧰 Engineering Essentials·~30m

Reproduce, bisect, hypothesize, verify — the method that beats random poking under deadline pressure.

🧰 Engineering Essentials·~30m