Rubyslava debugging with_pry

420 views

Published on

Published in: Technology, Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
420
On SlideShare
0
From Embeds
0
Number of Embeds
45
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

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

×