Werner Schuster (murphee) wrote:
> Markus Barchfeld wrote:
>   
>> The debugger will need some serious refactoring. Currently I work on the
>> integration of ruby-debug which will probably make the debugger 2,5
>> times faster (e.g. wait 10 instead of 25 secs until reaching a
>> breakpoint). Unfortunately ruby-debug needs some refactoring (if it is
>> feasible at all) to support threads in the same way as the current debugger.
>>
>>   
>>     
> What's the current state for debugging JRuby? I looked at
> org.rubypeople.rdt.launching/ruby/eclipseDebug.rb
>   
I did not do anything towards support for JRuby debugging (I am just not 
using JRuby, so ...).
> Is that still used or will this be replaced by ruby-debug? (That's the
> debugging lib that's using a native extension, is it?)
>   
For debugging with ruby-debug eclipseDebug.rb will not be used at all. 
But I think we should support both since ruby-debug is not (yet?) part 
of the ruby installers and needs to be installed with gem. Of course we 
will need RDT compatible releases of ruby-debug and I hope that we will 
have one soon.
Yes, ruby-debug is the one with the native extension. Compared to the 
current implementation there is logic moved into C code resulting in 
less ruby calls (mainly for checking if a breakpoint is being hit).
> I trying out org.rubypeople.rdt.launching/ruby/eclipseDebug.rb  and
> JRuby. It didn't work out of the box because it just froze/blocked after
> startup.
> I got it to work up to a certain point, where it at least reads from the
> commandLoop, but there's a problem because the Regexes that this uses
> don't work in JRuby.
>   
You can have a look at the test suites in org.rubypeople.rdt.debug.core. 
There you can see all the commands we send to the debugger and what 
results we expect. As mentioned before the main issue with ruby-debug 
was the threading model. With the test suite you will find out soon 
which scenarios will do or not.

Thanks
Markus

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Rubyeclipse-development mailing list
Rubyeclipse-development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rubyeclipse-development

Reply via email to