Debugging in pry Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

How do you print out the call stack?

A

wtf

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do you get more lines of the call stack?

A

wtf? (more ?’s or !’s = more lines)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does wtf??? do?

A

It shows a bunch of lines from the call stack

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How do you show all the methods in an object or current context?

A

ls

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How do you set a current context named foo?

A

cd foo

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How do we show the source for a method or class named foo?

A

show-source foo

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How do you show where the execution pointer is in the source?

A

list=

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does list= do?

A

Displays where in the source the execution pointer is.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How do you track a variable as it changes through the execution?

A

display

How well did you know this?
1
Not at all
2
3
4
5
Perfectly