davejacobs / letters

A tiny debugging library for Ruby
Other
271 stars 9 forks source link

Support Ruby's builtin debugger #7

Open postmodern opened 12 years ago

postmodern commented 12 years ago

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 commented 12 years ago

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

postmodern commented 12 years ago

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 commented 12 years ago

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 commented 12 years ago

Nothing apparently? Compare debugger with debug.