Re[jruby-user] mote debugging as in Java for JRuby?


#1

Cannot do something like this:

set
JAVA_DEBUG=-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=4000
-Xdebug
call jruby %JAVA_DEBUG% -d jmdi.rb

We get:
jruby: invalid extended option
runjdwp:transport=dt_socket,server=y,suspend=n,ad
dress=4000 (-X will list valid options)

Basically:

  1. Want to start Jruby in debug mode
  2. Connect through Eclipse debugger as usual

What am I missing here?

Thanks!

View this message in context:
http://www.nabble.com/remote-debugging-as-in-Java-for-JRuby--tp20387134p20387134.html
Sent from the JRuby - User mailing list archive at Nabble.com.


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

#2

try to add -J to your -X options (jruby -J-Xrunjdwp:transport…)

On Fri, Nov 7, 2008 at 5:36 PM, drrs removed_email_address@domain.invalid wrote:

runjdwp:transport=dt_socket,server=y,suspend=n,ad
View this message in context:


Fabio K.
http://www.fabiokung.com

Caelum - Ensino e Inovação
http://www.caelum.com.br


#3

For some reason, this is not working with Eclipse Plugin RDT JVM
Arguments
directly…when running as Ruby Application using Jruby.

But it does run with jruby command line and can connect to it with
Eclipse
Debugger…

Thanks!

Fabio K. wrote:

-Xdebug

To unsubscribe from this list, please visit:

Caelum - Ensino e Inovação
http://www.caelum.com.br


View this message in context:
http://www.nabble.com/remote-debugging-as-in-Java-for-JRuby--tp20387134p20392964.html
Sent from the JRuby - User mailing list archive at Nabble.com.


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email