Your SlideShare is downloading. ×
Rubyslava debugging with_pry
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Rubyslava debugging with_pry

227

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
227
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Debugging with Pry Michal Oláh @michalolah @bonetics
  • 2. Progammers spend 60% of their time debugging We should pay attention to our workflow
  • 3. “There are no fully fledged IDEs for Ruby on Rails…” –Agile Web Development with Rails -July 2009
  • 4. WTF
  • 5. WTF?
  • 6. WTF?!
  • 7. Actually its not that bad
  • 8. we have tests after all
  • 9. And puts is a powerfull thing
  • 10. But what if you meet this guy?
  • 11. Commands ! binding.pry play whereami edit -c exit ls cd next, previous, skip, breakpoint (debugger)
  • 12. Demo 1 ! • debugging integration tests ! • fast feedback of what works and what doesn’t
  • 13. Demo 2 ! • debugging controller action ! • ls, cd ! • inplace code edit and debug with breakpoints ! • edit, breakpoint, whereami, wtf?! ! • debugging with pry-rescue
  • 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. 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

×