Ruby for All

The State of Debugging in Ruby — A Puts-tastic Journey

14 snips
Mar 28, 2024
Join hosts Andrew and Julie on a humorous journey through debugging challenges in Ruby, from weather-induced moods to tricky bugs. They discuss using logs for troubleshooting, the value of teamwork, and the complexity of transitioning to new debugging tools. Andrew shares his process for solving a production bug, while Julie emphasizes the importance of understanding product behavior. They ponder fixing minor bugs vs. major ones and acknowledge that some bugs may remain unfixed. Laughter and insights abound in this human-centered look at the world of code.
Ask episode
AI Snips
Chapters
Transcript
Episode notes
ADVICE

Reading Error Messages

  • Carefully read error messages as they often contain the solution.
  • Develop the skill of identifying important parts of logs and stack traces.
ADVICE

Google It!

  • If an error is unclear, copy and paste it into Google.
  • This is especially helpful for dependency-related issues.
ADVICE

Rails Logger vs. Puts

  • Prefer Rails logger over puts for debugging.
  • It provides context within the request and logs SQL statements.
Get the Snipd Podcast app to discover more snips from this episode
Get the app