Debugging tools Flashcards

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

How to use pry instead of irb?

A

just type pry instead of irb in the console

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

How to get the result of the latest executed command?

A

With ‘_’ last one

‘__’ ( with 2 ‘_’) the previous one before the last

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

How to see all available methods for the object?

A
  • ls String

- ls []

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

How to show documentation for the method in pry console?

A

show-doc String#crypt

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

How to show the source of method? ( how was implemented)

A

show-source Array#map

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