Skip to content

Instantly share code, notes, and snippets.

@banister
Created October 25, 2012 10:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save banister/cf1758d71f1d0eaca15e to your computer and use it in GitHub Desktop.
Save banister/cf1758d71f1d0eaca15e to your computer and use it in GitHub Desktop.
Ruby 2.0 breaks support for some debugging tools
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment