Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-19409

bug in auto-detecting -Xrunjdwp flags in running jvms

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.3.0.Alpha2
    • 4.2.3.CR1
    • common
    • None
    • Hide

      1) Create a POJP
      2) Add a main class that is very long running, simple for-loop to max-int should be fine
      3) Run as java project, but make sure vm args include: -Xrunjdwp:address=4000,server=y,transport=dt_socket,suspend=n
      4) Once huge loop is running, right-click your main class, select Debug As -> Remote Java Application
      5) Verify your running main class does not show up in the list (bug)

      Show
      1) Create a POJP 2) Add a main class that is very long running, simple for-loop to max-int should be fine 3) Run as java project, but make sure vm args include: -Xrunjdwp:address=4000,server=y,transport=dt_socket,suspend=n 4) Once huge loop is running, right-click your main class, select Debug As -> Remote Java Application 5) Verify your running main class does not show up in the list (bug)
    • Hide

      Make sure your main class has
      -Xrunjdwp:transport=dt_socket,server=y,address=4000,suspend=n

      In other words, make sure the first runjdwp flag is transport, not server, address, or suspend.

      Show
      Make sure your main class has -Xrunjdwp:transport=dt_socket,server=y,address=4000,suspend=n In other words, make sure the first runjdwp flag is transport, not server, address, or suspend.

      Current code in org.jboss.tools.common.jdt.debug.VmModel assumes the debug args start with -Xrunjdwp:transport when really it can start with

      -Xrunjdwp:transport=dt_socket,server=y,address=4000,suspend=n
      -Xrunjdwp:address=4000,server=y,transport=dt_socket,suspend=n
      -Xrunjdwp:server=y,address=4000,transport=dt_socket,suspend=n
      -Xrunjdwp:suspend=n,address=4000,server=y,transport=dt_socket

            rob.stryker Rob Stryker (Inactive)
            rob.stryker Rob Stryker (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: