Debugging in pry Flashcards
1
Q
How do you print out the call stack?
A
wtf
2
Q
How do you get more lines of the call stack?
A
wtf? (more ?’s or !’s = more lines)
3
Q
What does wtf??? do?
A
It shows a bunch of lines from the call stack
4
Q
How do you show all the methods in an object or current context?
A
ls
5
Q
How do you set a current context named foo?
A
cd foo
6
Q
How do we show the source for a method or class named foo?
A
show-source foo
7
Q
How do you show where the execution pointer is in the source?
A
list=
8
Q
What does list= do?
A
Displays where in the source the execution pointer is.
9
Q
How do you track a variable as it changes through the execution?
A
display