Successfully reported this slideshow.
Your SlideShare is downloading. ×

Rubyslava debugging with_pry

Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Upcoming SlideShare
Test Motherfucker...Test
Test Motherfucker...Test
Loading in …3
×

Check these out next

1 of 18 Ad
Advertisement

More Related Content

Slideshows for you (20)

Viewers also liked (19)

Advertisement

Similar to Rubyslava debugging with_pry (20)

Recently uploaded (20)

Advertisement

Rubyslava debugging with_pry

  1. 1. Debugging with Pry Michal Oláh @michalolah @bonetics
  2. 2. Progammers spend 60% of their time debugging We should pay attention to our workflow
  3. 3. “There are no fully fledged IDEs for Ruby on Rails…” –Agile Web Development with Rails -July 2009
  4. 4. WTF
  5. 5. WTF?
  6. 6. WTF?!
  7. 7. Actually its not that bad
  8. 8. we have tests after all
  9. 9. And puts is a powerfull thing
  10. 10. But what if you meet this guy?
  11. 11. Commands ! binding.pry play whereami edit -c exit ls cd next, previous, skip, breakpoint (debugger)
  12. 12. Demo 1 ! • debugging integration tests ! • fast feedback of what works and what doesn’t
  13. 13. Demo 2 ! • debugging controller action ! • ls, cd ! • inplace code edit and debug with breakpoints ! • edit, breakpoint, whereami, wtf?! ! • debugging with pry-rescue
  14. 14. Plugins and features • pry-debugger (MRI 1.8-1.9) • pry-byebug (MRI 2.0+) • pry-rescue - resque from exceptions in to a pry session • plymounth - jump into a pry session on test failure • pry-rails • help command • pry custom commands
  15. 15. Resources • http://pryrepl.org • http://gaslight.co/blog/i-like-pry-but-dot-dot-dot • http://railscasts.com/episodes/280-pry-with-rails • http://www.youtube.com/watch?v=o90CCPjcIKE • https://github.com/m1k3/rubyslava_pry_demo

×