[MacRuby-devel] Setting Breakpoints/Debugger

Laurent Sansonetti lsansonetti at apple.com
Thu Jun 18 13:18:49 PDT 2009


On Jun 18, 2009, at 2:09 AM, Eloy Duran wrote:

> I had a little play with IRB. With some “easy” workarounds, plain  
> Ruby at least, I was able to get IRB in the right context. However,  
> on MacRuby (at least on 0.5), this doesn't work completely, as the  
> binding of a proc returns the wrong context:
>
> % ruby -e "class Foo; def initialize; p eval('self', (proc  
> {}).binding); end; end; Foo.new"
> #<Foo:0x29324>
>
> % ruby19 -e "class Foo; def initialize; p eval('self', (proc  
> {}).binding); end; end; Foo.new"
> #<Foo:0x3e7178>
>
> % ./miniruby -e "class Foo; def initialize; p eval('self', (proc  
> {}).binding); end; end; Foo.new"
> #<Proc:0x80004dfa0>

Fixed in r1878 :)

Laurent


More information about the MacRuby-devel mailing list