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
Debugando com Pry
Search
Philippe Hardardt
October 19, 2019
Programming
58
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Debugando com Pry
https://www.youtube.com/watch?v=s_Hy_RYUCtU
https://github.com/peagha/pry_game_of_life
Philippe Hardardt
October 19, 2019
More Decks by Philippe Hardardt
See All by Philippe Hardardt
Rack - A interface por trás dos frameworks web em Ruby
peagha
1
100
Do ASP.NET para o Rails - as melhores partes
peagha
2
380
Other Decks in Programming
See All in Programming
LLM 101
dalinaum
0
420
graphql-ruby を Spinel で速くしようとした話
mtsmfm
0
130
[JA] Domain Modeling with Vanilla Rails: 「操作」から再考するRailsの設計論
yasaichi
4
1.5k
AI Augmentation Techniques with Liberty
ivargrimstad
0
220
Lambda durable functionsでHuman in the Loopを楽に…楽に……
har1101
2
240
Spec-driven Development with AI
simas
PRO
0
2.2k
AI主導のプログラミング学習アプリを作ってみた
econanringo
0
210
Groovy as a human and AI friendly programming language
paulk
0
150
S3 TablesのIcebergデータに、AIエージェントからアクセスしてみた / 20261016developersio2026joetsu-accessing-iceberg-in-s3tables-via-agent
kasacchiful
PRO
0
250
Event is what happens
moro
2
2.4k
No More NoSuchMethodError
exoego
1
120
Web3Dライブラリを作ってVue Custom Rendererの仕組みを理解しよう / lets learn vue custom renderer by making 3d library
drumath2237
1
110
Featured
See All Featured
For a Future-Friendly Web
brad_frost
184
11k
Art, The Web, and Tiny UX
lynnandtonic
304
22k
Music & Morning Musume
bryan
48
7.5k
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
410
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
480
Are puppies a ranking factor?
jonoalderson
2
4.1k
What does AI have to do with Human Rights?
axbom
PRO
1
2.5k
GraphQLとの向き合い方2022年版
quramy
50
15k
My Coaching Mixtape
mlcsv
0
370
We Have a Design System, Now What?
morganepeng
55
8.4k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.5k
The Mindset for Success: Future Career Progression
greggifford
PRO
0
550
Transcript
Debugando com Pry
Oi, eu sou o Phil
None
Mas antes…
Jogo da vida de Conway
None
Implementado em Ruby
[código ao vivo] https://github.com/peagha/ pry_game_of_life
Recapitulando
binding.pry if true pry: criar um breakpoint quando o código
atingir um determinado estado
whereami pry: ver o código onde se encontra o breakpoint
atual
edit pry: edit Classe#método ou edit Classe Editar o código
fonte de um arquivo e recarregar o mesmo
show-source pry: show-source Classe#método ou show-source Classe Ver o o
fonte de um método ou classe
disable-pry Desliga o pry até o fim da execução do
programa
up / down pry-byebug: up: subir para o método que
chama o atual down: voltar para o método atual
$variaveis_globais Ruby: variáveis que você pode acessar em qualquer lugar
def inspect Ruby: definir o método que será usado pelo
Pry ou IRB para apresentar um objeto
Ferramental de debug
Leiam os docs
Obrigado! peagha @philHenri