From: "banister (john mair)" Date: 2012-10-28T05:14:42+09:00 Subject: [ruby-core:48495] [ruby-trunk - Bug #7214] Ruby 2.0 breaks support for some debugging tools Issue #7214 has been updated by banister (john mair). @ko1 Unfortunately I can't make it to rubconf2012. What we need for Ruby 2.0 is the `binding_of_caller` gem working (https://github.com/banister/binding_of_caller/blob/ruby-2.0/ext/binding_of_caller/binding_of_caller.c). We need the ability to grab bindings from parent frames up the call-stack. We are using this `binding_of_caller` functionality to great effect in the pry-rescue (https://github.com/conradirwin/pry-capture) and pry-stack_explorer (https://github.com/pry/pry-stack_explorer) projects, they allow some very powerful workflows, and it would be a real shame if they can't work in 2.0 as they work brilliantly in Ruby 1.9.2-1.9.3 currently. I am willing to help in any way possible to make this a reality for Ruby 2.0, just let me know what you need. Thanks! ---------------------------------------- Bug #7214: Ruby 2.0 breaks support for some debugging tools https://bugs.ruby-lang.org/issues/7214#change-31827 Author: banister (john mair) Status: Open Priority: Normal Assignee: ko1 (Koichi Sasada) Category: core Target version: 2.0.0 ruby -v: ruby 2.0.0dev (2012-10-18 trunk 37260) [x86_64-linux] Notably the "Pry" debugger breaks, and (though i haven't checked) I'm assuming the 'debugger' project as well. The reason for the breakages (as far as i can see) is that the `rb_vm_make_env_object` function is now hidden. In the comments for 1.9.3's vm.c it was stated an alternative API for `rb_vm_make_env_object` (see https://github.com/ruby/ruby/blob/ruby_1_9_3/vm.c#L53-60) would be provided, but I have been unable to find one. Can you please inform me of where I can find the new API (if it exists), or alternatively, provide a work-around so we can get the debuggers working on Ruby 2.0 Thanks -- http://bugs.ruby-lang.org/