Source-Diving for Fun and Profit
summary
Concrete, tactical guide to debugging third‑party gems: shows a three‑step workflow (find the big files, search iteratively, then trace a single line), demonstrates tools like ag and the referral AST search, live debugging with pry-byebug, and even editing gems on disk to add print statements. Real examples include chasing a Reddit stream through the redd gem, untangling cancancan metaprogramming, and locating an SFTP/CSV argument bug that later gets patched upstream. Practical, hands‑on techniques you can apply tonight.
AI-written summary · about
chapters (16)
- 0:00Intro
- 0:23Me writing code
- 5:19Take me to your leader
- 5:48Start at the top
- 7:09Find the biggest
- 8:24If you see something, search something
- 10:10Regex Search
- 11:09Iterative Searching
- 16:32Searching: Referral
- 17:342. Searching
- 19:29Rake code
- 19:523. Trace It
- 26:22Debuggers are great
- 28:24Tracing: Forwards
- 29:11Tracing: Backwards
- 31:33Tracing: Gem Gems








