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.
views:
146answers:
2
+1
A:
Its because, when you are doing it interactively, your "sourcefile" is std-in.
Kent Fredric
2008-11-27 06:27:36
+1
A:
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.
Adam Byrtek
2008-11-29 21:35:10