Chris Nelson wrote:
Guys,

This sounds like an awesome list of stuff, but a feature that I think would help a lot of with JRoR projects would be to improve the debugging experience. Right now the only way to get JRuby on Rails debugging to work in NetBeans is by setting an undocumented property in a config file. And even then, it's quite buggy. From what I understand Netbeans needs to have the fast debugger supported in JRuby before this situation will improve. I would be willing to lend a hand on this if someone could point me in the right direction. I've done a ton of Java and am doing more Ruby all the time, but I'm not too familiar with the internals of JRuby or how this would need to work.

Hey, an offer of help! That's what I like to see!

Basically, fast debugging in JRuby is just waiting for someone to implement a ruby-debug library port. The plumbing is basically there in JRuby already to support it, and I stubbed out most of the Java code that would be required to hook it up (somewhere in SVN), so it's really just about hooking up the functionality.

On the down side of debugging, the compiled code currently doesn't fire all the various hooks needed to response to debugging or profiling libraries.

In the short term, that just means that debugging code will run a bit slower, since it won't use the compiler. But that's far from unusable...the interpreter still performs pretty well, and debugging doesn't have to run at full-speed anyway

Long term, I will probably bite the bullet and add in the appropriate hooks. But not right now.

So basically, you should get familiar with the ruby-debug library, take the stub code I implemented, and run with it. And try to get others to help you; this is a fairly ugly gap in our Ruby support.

- Charlie

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

   http://xircles.codehaus.org/manage_email

Reply via email to