letters icon indicating copy to clipboard operation
letters copied to clipboard

Support Ruby's builtin debugger

Open postmodern opened this issue 12 years ago • 4 comments

I noticed that letters require ruby-debug and calls debugger. You can use Ruby's builtin debugger:

require 'debug'
Debug.rb
Emacs support available.

/usr/share/ruby/irb/context.rb:166:
(rdb:1) 

postmodern avatar Oct 03 '12 00:10 postmodern

I am a big fan of ruby-debug -- what are the tradeoffs between it and the builtin?

davejacobs avatar Oct 04 '12 20:10 davejacobs

Currently ruby-debug will not compile against MRI 1.9.x, so one has to install the newer debugger gem. Both debugger and the built-in debugger have roughly the same set of commands. The built-in debugger is guaranteed to work on MRI and JRuby; Rubinius has it's own debugger.

Perhaps I should just send you a pull request. :)

postmodern avatar Oct 04 '12 22:10 postmodern

The ruby-debug I'm requiring there is from the debugger gem (@cldwalker's fork of ruby-debug), so it will compile against YARV. I would like to add JRuby and Rubinius support, so thanks for your PR. What do we lose by not using ruby-debug?

davejacobs avatar Oct 04 '12 23:10 davejacobs

Nothing apparently? Compare debugger with debug.

postmodern avatar Oct 04 '12 23:10 postmodern