Skip to content

Support Ruby's builtin debugger #7

Open
postmodern opened this Issue Oct 3, 2012 · 4 comments

2 participants

@postmodern

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) 
@davejacobs
Owner

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

@postmodern

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. :)

@davejacobs
Owner

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?

@postmodern

Nothing apparently? Compare debugger with debug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.