Bug 457085 - Remote debugging may have option to keep listening on port after detach
Summary: Remote debugging may have option to keep listening on port after detach
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 4.5   Edit
Hardware: PC Linux
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-08 16:48 EST by Matej Briskar CLA
Modified: 2015-01-09 05:32 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matej Briskar CLA 2015-01-08 16:48:11 EST
Right now, after the remote VM is terminated, the debugging in eclipse is terminated as well. It would be useful to be able to force it to stay alive.

Use case I am facing now:
Nondeterministically a test fails to be loaded, so in order to catch such behaviour in debug mode, I need to run debugging on all of the tests we have to have a chance to reproduce that behaviour. They however run in many testsuites and Eclipse keeps disconnecting after each of them.
Comment 1 Max Rydahl Andersen CLA 2015-01-08 17:21:16 EST
Matej - to be precise you are running the tests from maven which you have configured to launch each testsuite in a separate process, correct ? 

And yes, I think this would be a great feature for all those that are forced to run each test in a new vm. would be great to have a launch go back to listening when the debugged client exit.
Comment 2 Matej Briskar CLA 2015-01-08 17:34:08 EST
Max - not sure, I am using only defaults "mvn clean install -Dmaven.surefire.debug", however I am running multiple maven modules
Comment 3 Max Rydahl Andersen CLA 2015-01-08 17:46:30 EST
yeah so each test run default to forking (see http://maven.apache.org/surefire/maven-surefire-plugin/examples/debugging.html)

As a workaround you can try run with 'mvnDebug -DforkCount=0 clean install' to avoid the launching (but your tests might rely on it being launched separately)

still find this feature request interesting for the cases where you do have multiple launches and need it.
Comment 4 Matej Briskar CLA 2015-01-09 05:32:30 EST
In my case -DforkCount=0 will cause problems because the system is not stable when being tested (didn't investigate deeper why it happens).