Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-5819

Add logic to BaseTestCase to start subprocesses ready to be attached to from a Java debugger

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.10.1.1
    • Component/s: Test
    • Labels:
      None

      Description

      Sometimes it's useful to be able to attach to subprocesses of tests with a debugger.
      Now that we have centralized subprocess creation in BaseTestCase#execJavaCmd it would be easy and useful to have subprocesses start, but wait for a debugger to attach to them, i.e. with these options on an Oracle VM:

      -Xdebug -Xrunjdwp:transport=dt_socket,address=<port>,server=y,suspend=y

        Attachments

        1. derby-5819.diff
          1 kB
          Dag H. Wanvik
        2. derby-5819b.diff
          2 kB
          Dag H. Wanvik
        3. derby-5819c.diff
          2 kB
          Dag H. Wanvik
        4. derby-5819d.diff
          2 kB
          Dag H. Wanvik

          Activity

            People

            • Assignee:
              dagw Dag H. Wanvik
              Reporter:
              dagw Dag H. Wanvik
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: