Chris Nelson wrote:
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?

Now I have to look this up for sure, but I believe we should look at moving it toward BasicLibraryService. jruby-debug is probably not something we'd want to include in core, so we'd want to have it gem-installable.

Could you look into making that change? And in the short term, if that proves challenging, you could just make the Ruby.java change to continue working on it. We can rewire it later.

- Charlie

---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to