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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 10.10.1.1
    • Test
    • 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

            dagw Dag H. Wanvik
            dagw Dag H. Wanvik
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: