Just trying to get my irb sessions to actually list the current line of code, and those around it. Similar to what Perl's -d debugging mode lets you ddo.
Asked
Active
Viewed 762 times
2 Answers
2
Its because, when you are doing it interactively, your "sourcefile" is std-in.

Kent Fredric
- 56,416
- 14
- 107
- 150
-
this also explains the message when running rdb within `shef` in recipe mode – TrinitronX Apr 09 '13 at 21:00
1
If you are looking for a Ruby debugger you could try ruby-debug. It lets you set a breakpoint and then step through the code while displaying a context around the current instruction.

mydoghasworms
- 18,233
- 11
- 61
- 95

Adam Byrtek
- 12,011
- 2
- 32
- 32