Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Debugging with Pry
Search
Conrad Irwin
July 25, 2013
160
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Debugging with Pry
Slides from Debugging with Pry at Lumos Labs.
Conrad Irwin
July 25, 2013
Transcript
12 slides
None
From http://www.codeodor.com/images/frustrated.jpg
“Beware of bugs in the above code; I have only
proved it correct, not tried it.” — Donald Knuth
From http://thecollaboratory.wikidot.com/2013-philosophy-of-thought-logic
None
None
None
Use binding.pry Easier to write. Easier to read. Can explore
interactively. Can fix things interactively.
Use binding.pry whereami $ (aka. show-source) ls edit
Use binding.pry cd ? (aka. show-doc) up (and down) try-again
(with rescue rails server) help
Debugging is fun 49.9% of your time is spent debugging.
Optimize that. Pry can help.
Questions? @ConradIrwin
More Decks by Conrad Irwin
See All by Conrad Irwin
Go for Rubyists
conradirwin
2
330
REPL Driven Development with Pry!
conradirwin
5
1.7k
MongoDB — confessions of a PostgreSQL lover
conradirwin
3
4.2k
Debuggable Code
conradirwin
1
320
Pry — the good parts!
conradirwin
25
1.7k
Efficient debugging with Pry
conradirwin
2
430
Featured
See All Featured
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
370
We Have a Design System, Now What?
morganepeng
55
8.4k
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
480
Building the Perfect Custom Keyboard
takai
2
970
The Invisible Side of Design
smashingmag
301
52k
ラッコキーワード サービス紹介資料
rakko
5
6.1M
Accessibility Awareness
sabderemane
1
320
Art, The Web, and Tiny UX
lynnandtonic
304
22k
How to Ace a Technical Interview
jacobian
280
24k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
31k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
370
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
590