Dudley Flanders wrote:
> On Oct 18, 2007, at 12:10 AM, Charles Oliver Nutter wrote:
>>> 3. You have my JDK versions already... any more tips on how to debug
>>> this? I'm using a 32bit system, for what it's worth.
>>
>> puts?
>>
>> Debugging this stuff is still a little difficult. Hopefully
>> jruby-debug will come along soon.
>
> For what it's worth, I've been using jruby-debug for the last week or
> so. It's not ready for prime time, but fairly usable.

I'm quite surprised by such words :) Probably it's right time to put
some special hooks into NetBeans. Since until now it was impossible to
use jruby-debug from the IDE. And I've also promised this to Chris ;)

So what is needed to start jruby-debug in NetBeans:

0) do what Chris described (install jruby-debug gem)
1) install ruby-debug-ide gem
2) s/ruby_debug.so/ruby_debug_base.jar in
   $GEM_HOME/gems/ruby-debug-ide-0.1.8/lib/ruby-debug.rb
3) pass -J-Dorg.netbeans.modules.ruby.debugger.force.rdebug=true to the
   NetBeans executable

Then when JRuby interpreter is selected in NetBeans jruby-debug is
always used, no matter to what is set in the Options dialog. And what
happens? Debugger does not start up at all - so it's currently useful
only for jruby-debug developers. But that will be false very soon... I
hope... umm... Peter, Chris? :)

        m.

PS: in latest NetBeans Ruby IDE which is not build yet, but should in ±1 hour: http://deadlock.netbeans.org/hudson/job/ruby/

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

   http://xircles.codehaus.org/manage_email

Reply via email to