On 8/25/06, Matthew Johnson <musical.matthew / mac.com> wrote:
>
> Have a look at this article: http://eigenclass.org/hiki.rb?breakpoint
> +breaking+in+1.8.5.
>
> I believe the new library described here may be of use to you when it
> is released.
>
>

It seems that ruby-debug already provides almost all features planned
for this library:

Consider this:

require "rubygems"
require 'ruby-debug'
Debugger.start

module Kernel
  def binding_n(n = 0)
    frame = Debugger.current_context.frames[n+1]
    frame.binding if frame
  end
end

def test
  puts eval("var", binding_n(1))
end

var = 'Hello'
test


And I think that the overhead of both libraries should be the same,
which is substantial unfortunately.

-- 
Kent
---
http://www.datanoise.com