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 Improvement
    • Status: Closed
    • Priority: Minor 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

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

        Activity

        No work has yet been logged on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development