Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8304503

Modernize debugging jvm args in demo netbeans projects

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 22
    • None
    • client-libs
    • None
    • b06

      The demo netbeans projects found in src/demo/share/nbproject currently use the following combination of jvm arguments to set up debugging:

      <jvmarg value="-Xdebug"/>
      <jvmarg value="-Xnoagent"/>
      <jvmarg value="-Djava.compiler=none"/>
      <jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>

      They should instead just do:

      <jvmarg value="-agentlib:jdwp=transport=dt_socket,server=n,suspend=n,address=${jpda.address}"/>

      Additionally, the source dir set up in build.properties for these projects do not seem to align with the source layout.

      'src.dir=${main.dir}/src' should instead be just 'src.dir=${main.dir}/'

            eirbjo Eirik Bjørsnøs
            eirbjo Eirik Bjørsnøs
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: