Does Ruby have a step-by-step debugger similar to Perl "perl -d"?

Does Ruby have a step-by-step debugger similar to Perl "perl -d"?

+5
source share
2 answers

ruby-debug (for ruby ​​1.8), debugger (for ruby ​​1.9), byebug (for ruby ​​2.0), and also trepanning all have the -xor parameter --trace. Inside debuggers, the command set linetraceenables or disables line tracing. Here is the guide for ruby-debug

The original answer was revised because the link to the datanoise article, alas, no longer works. Also added ruby-debug successors

+9
source

From the command line (if you have a module debug):

ruby -r debug /path/to/ruby_script.rb
+1
source

All Articles