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
Debugando com Pry
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Philippe Hardardt
October 19, 2019
Programming
51
0
Share
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
93
Do ASP.NET para o Rails - as melhores partes
peagha
2
360
Other Decks in Programming
See All in Programming
プラグインで拡張される Context をtype-safe にする難しさと設計判断
kazupon
2
470
tsserverとは何だったのか、これからどうなるのか
nowaki28
1
420
初めてのRubyKaigiはこう見えた
jellyfish700
0
350
運用エージェントは "作る" から "育てる" へ - 記憶と自己進化の3層設計パターン / self-evolving-agents-three-layer-agent-design
gawa
12
3.3k
タクシーアプリ『GO』の バックエンド開発のおける AI利活用と若者のすべて
pyama86
3
1.8k
Transactional Change Stream Processing With Debezium and Apache Flink
gunnarmorling
1
140
サーバーレスで作る、動画データ管理基盤
oyasumipants
0
320
関係性から理解する"同一性"の型用語たち
pvcresin
2
620
Make SRE Operations Easier with Azure SRE Agent
kkamegawa
0
2.1k
Spec-Driven Development with AI-Agents: From High-Level Requirements to Working Software
antonarhipov
2
390
ビジネスモデルから紐解く、AI+型駆動開発
hirokiomote
2
4.4k
Oxlintのカスタムルールの現況
syumai
5
900
Featured
See All Featured
Side Projects
sachag
455
43k
Building AI with AI
inesmontani
PRO
1
1k
Docker and Python
trallard
47
3.9k
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
210
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
55k
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
5.8k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
Code Reviewing Like a Champion
maltzj
528
40k
Heart Work Chapter 1 - Part 1
lfama
PRO
7
36k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
300
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
270
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