Debugging with Pry

46d1ebbb28ce0f4a8f2c77b6d3d95829?s=47 Conrad Irwin
July 25, 2013
90

Debugging with Pry

Slides from Debugging with Pry at Lumos Labs.

46d1ebbb28ce0f4a8f2c77b6d3d95829?s=128

Conrad Irwin

July 25, 2013
Tweet

Transcript

  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