Uploaded image for project: 'Service Design and Creation'
  1. Service Design and Creation
  2. SDC-3288

Unable to run SDC on debugging mode

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Medium Medium
    • Guilin Release
    • Guilin Release
    • SDC
    • None

      Remote debugging does not work with Java 11

      Previously to attach a remote debugger, we could specify JVM arguments such as this:

      -agentlib:jdwp=transport=dt_socket,*address=*8787,server=y,suspend=n

      However, this does not allow connecting to the VM with a remote debugger. To allow this, we need to slightly adjust the address property to be this:

      -agentlib:jdwp=transport=dt_socket,address=:*8787,server=y,suspend=n

      Unfortunately, the *: syntax is not backwards compatible to Java 7/8, but if we specify the hostname instead of * then it does work on all JDKs.

      Reference: https://github.com/OpenLiberty/open-liberty/issues/7833

            aribeiro aribeiro
            aribeiro aribeiro
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: