Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
Debugando com Pry
Philippe Hardardt
October 19, 2019
Programming
0
27
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
Tweet
Share
More Decks by Philippe Hardardt
See All by Philippe Hardardt
Rack - A interface por trás dos frameworks web em Ruby
peagha
1
71
Do ASP.NET para o Rails - as melhores partes
peagha
2
190
Other Decks in Programming
See All in Programming
Lookerとdbtの共存
ttccddtoki
0
610
Efficient UI testing in Android
alexzhukovich
1
120
大規模プロダクトにLinterを導入し運用している話
hirokiotsuka
0
300
10歳の minne から、これから長く続くプロダクトを作るすべての人へ
tsumichan
9
3.5k
AWS Config Custom Rule、ノーコードでできるかな?
watany
0
250
Register-based calling convention for Go functions
cjamhe01385
0
380
YATA: collaborative documents and how to make them fast
horusiath
1
140
Automating Gradle benchmarks at N26
ubiratansoares
PRO
1
130
僕が便利だと感じる Snow Monkey の特徴/20220723_Gifu_WordPress_Meetup
oleindesign
0
100
Git操作編
smt7174
0
130
JetpackCompose 導入半年で感じた 改善点
spbaya0141
0
140
2022年のモダンCSS改
tonkotsuboy_com
24
16k
Featured
See All Featured
A Philosophy of Restraint
colly
192
15k
Product Roadmaps are Hard
iamctodd
35
6.8k
Gamification - CAS2011
davidbonilla
75
3.9k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
37
3.3k
The Web Native Designer (August 2011)
paulrobertlloyd
75
2k
Building Adaptive Systems
keathley
25
1.1k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
236
1.1M
Principles of Awesome APIs and How to Build Them.
keavy
113
15k
GitHub's CSS Performance
jonrohan
1020
420k
Mobile First: as difficult as doing things right
swwweet
213
7.5k
Documentation Writing (for coders)
carmenintech
48
2.6k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
226
15k
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