I am using JRuby (through the standard JRE 6 support) to add some Ruby
classes to a big existing Java application.

This application is started as usual as any Java app (by running a
main method), and it eventually calls my Ruby code. Is there a way to
debug Ruby code which is being called from Java?

If not, is there any hack/workaround? I know I can unit-test my Ruby
code but if I want to debug the real (and complex) environment, I need
to have my Ruby code called from the Java application...

Thanks,

   Luis.