db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dag H. Wanvik (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DERBY-5819) Add logic to BaseTestCase to start subprocesses ready to be attached to from a Java debugger
Date Fri, 15 Jun 2012 00:07:42 GMT

     [ https://issues.apache.org/jira/browse/DERBY-5819?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Dag H. Wanvik updated DERBY-5819:
---------------------------------

    Attachment: derby-5819.diff

Here is a crude patch which basically creates debug ports on all started subprocesses from
8800 and upward iff this setting applies in the parent VM:

-DdebugSubprocesses=true

We could parameterize the port offset, and the value for "suspend=?". Defaults could be 8800
and 'y' though. This method probably only applies to Oracle VMs, too, so the code should check
for that, I guess.


                
> Add logic to BaseTestCase to start subprocesses ready to be attached to from a Java debugger
> --------------------------------------------------------------------------------------------
>
>                 Key: DERBY-5819
>                 URL: https://issues.apache.org/jira/browse/DERBY-5819
>             Project: Derby
>          Issue Type: Improvement
>          Components: Test
>            Reporter: Dag H. Wanvik
>            Priority: Minor
>         Attachments: derby-5819.diff
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message