In ruby, why does my IRB interactive debugging session always say "No source file",

Just trying to get my irb sessions to actually display the current line of code and the ones around it. Just like the debugging mode of Perl -d allows you to do ddo.

+1
source share
2 answers

If you are looking for a Ruby debugger, you can try ruby-debug . It allows you to set a breakpoint, and then execute the code, showing the context around the current statement.

+1
source

Because when you do this interactively, your "source file" is std-in.

+2
source

Source: https://habr.com/ru/post/1724277/


All Articles