Been attempting to try out Martin's jruby-debug code from debug-commons and
haven't been able to get much of anywhere.  I assume I'm missing something
rather obvious, but I have not been able to get it to load.  I had to make a
small change to jruby trunk for Martin's code to compile (making RubyThread
constructor protected instead of private) and then I was able to compile and
build a jruby-debug.jar file.  However, how is this library designed to be
loaded?  I tried the obvious, doing require 'jruby-debug.jar' in a ruby
script.  This didn't work, as the code that tries to find a java extension
library expects to find a class that implements BasicLibraryService, whereas
the jruby-debug code has RubyDebugBaseLibrary which implements Library (not
BasicLibraryService).  It appears the right way to use this code would be to
have it added using registerBuiltIn in Ruby.initLibraries so it will be used
when any code does require 'ruby_debug.so'.  Is there a different way to do
this other than adding a line to Ruby.java?

TIA,

Chris

Reply via email to