Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Debugging with Pry
Search
Conrad Irwin
July 25, 2013
0
110
Debugging with Pry
Slides from Debugging with Pry at Lumos Labs.
Conrad Irwin
July 25, 2013
Tweet
Share
More Decks by Conrad Irwin
See All by Conrad Irwin
Go for Rubyists
conradirwin
2
240
REPL Driven Development with Pry!
conradirwin
5
1.5k
MongoDB — confessions of a PostgreSQL lover
conradirwin
3
3.5k
Debuggable Code
conradirwin
1
220
Pry — the good parts!
conradirwin
25
1.6k
Efficient debugging with Pry
conradirwin
2
350
Featured
See All Featured
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
46
2.3k
Making Projects Easy
brettharned
116
6k
[RailsConf 2023] Rails as a piece of cake
palkan
53
5.2k
Bash Introduction
62gerente
611
210k
Fashionably flexible responsive web design (full day workshop)
malarkey
406
66k
Building an army of robots
kneath
303
45k
A Philosophy of Restraint
colly
203
16k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
33
2.1k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
40
2k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.1k
Mobile First: as difficult as doing things right
swwweet
223
9.3k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
33
2.8k
Transcript
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