9. ruby-debug
Created by Kent Sibilev and Rocky Bernstein
● https://github.com/ruby-debug/ruby-debug
● http://bashdb.sourceforge.net/ruby-debug.
html
ruby-debug19 is a port by Mark Moseley
11. ruby-debug for 1.9.x
1. gem install ruby-debug19
2. profit (almost)
● Workaround for 1.9.3:
○ Need newer versions for linecache and ruby-debugbase, not on rubygems
○ Some stuff is still broken
○ https://gist.github.com/2047760
○ Thanks to @fredostarr, @spastorino, @rafaeldx7
and @garyharan
16. Pry
● Developed by John Mair (@banisterfiend)
● http://github.com/pry/pry
● Started as a turbo irb
● An ecosystem is growing around it
○ Lots of plugins
18. Pry demo
● Nice features
○
○
○
○
pagination
autocomplete
syntax highlight
highly customizable
● Lots of commands and features
○
○
○
○
●
●
ls, ls --help
cd, nesting, exit
.commands
show-doc, show-method, edit-method
pry-nav is not ready for primetime
pry-stack_explorer is ok
19. Lessons learned
● Debugging is not a bad thing when used
properly and sparingly
● Basic tools solve ~ 90% of the issues
● BDD/TDD will save you from debugging
most of the time
● The future is quite cloudy for Ruby debug
tools:
○ https://github.com/rocky/rb-trepanning
○ Cross-implementation?
○ http://blog.bithug.org/2011/09/maglev-debug
24. About me
● Coding professionally for 16 years
● Agilist, product and community guy too
● I love Ruby
"Ruby is designed to make programmers
happy"
- Matz