Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Debugging with Pry

Conrad Irwin
July 25, 2013

Debugging with Pry

Slides from Debugging with Pry at Lumos Labs.

Conrad Irwin

July 25, 2013


  1. None
  2. From http://www.codeodor.com/images/frustrated.jpg

  3. “Beware of bugs in the above code; I have only

    proved it correct, not tried it.” — Donald Knuth
  4. From http://thecollaboratory.wikidot.com/2013-philosophy-of-thought-logic

  5. None
  6. None
  7. None
  8. Use binding.pry Easier to write. Easier to read. Can explore

    interactively. Can fix things interactively.
  9. Use binding.pry whereami $ (aka. show-source) ls edit

  10. Use binding.pry cd ? (aka. show-doc) up (and down) try-again

    (with rescue rails server) help
  11. Debugging is fun 49.9% of your time is spent debugging.

    Optimize that. Pry can help.
  12. Questions? @ConradIrwin