3 thoughts on “how to stepthrough debug jruby core in netbeans

  1. irb(main):003:0> import org.familysearch.digitalarchive.clientdata.ChildrenData;
    irb(main):004:0*
    irb(main):005:0* 3
    NameError: undefined local variable or method `org’ for main:Object
    from (irb):3
    irb(main):006:0> require ‘java’

  2. From the datamapper wiki:

    Debugging (in java code).

    Set breakpoints in the do_jdbc Java code in NetBeans or another IDE. Run the specs for the driver you are interested in, with the debugger:

    jruby -J-Xdebug -J-Xrunjdwp:transport=dt_socket,address=9009,server=y,suspend=y -S rake spec
    Back in NetBeans, click Debug > Attach Debugger…. Set the port to 9009, and accept the other defaults. You should now be able to step-through, over and into code.

Leave a Reply

Your email address will not be published. Required fields are marked *


6 × one =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>