-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto attach Eclipse debugger to Surefire process when running "Debug as -> Maven test" / Improve M2E Run As Menu Options #124
Comments
Also relevant: https://bugs.eclipse.org/bugs/show_bug.cgi?id=538799 |
Providing a one-click solution to debug tests that run during a Maven build would be great feature that I would really appreciate. The first time I wanted to debug tests executed during build i first had to learn the difference between between launching a Maven-build as debug as (were you debug Maven itself), debugging Tests executed by Maven-Surefire and debugging tests executed by Tycho-Surefire (using the DebugPort and a remote debugger launched from my eclipse). At that time I was not yet very familiar with the whole Maven-Build/Tycho topic and it took some time and multiple attempts to learn the difference and make it work. To simplify debugging of tests and to avoid the same pain for my colleges have written a little plugin for my company that is installed in our development-Eclipses and adds a button that does the following
So to achieve seamless debugging of tests executed in builds, adjusting the What could also be possible, is to extend/add a Launch participant for Maven-Launches that adds a I also want to remark that currently the options displayed in the Run/Debug as sub-menue for a Maven project like Additionally it would be great if the debug functionality of tests would also be available for pre-configured launch configs. When I right click on such launch-config I can only select If nobody is working on this already I can offer to do it in the near future. |
@HannesWell I think you have already done some things here, do you think we can mark this as fixed and maybe open more dedicated issues? |
It has been improved yes, but I think #471 should be completed to resolve this one (it is dedicated to this issue). So I think this should stay open. |
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=428792 for previous discussions.
I think this feature would be of great value as of today its very inconvenient to debug maven tests. To reduce confusion I think we should remove all this stuff from Debug > ... menu completely, I have literally never found it useful (anyone really debugging a mvn clean session here?) in any way and its always ends in "Debug As > ... ".... WTF??--- Damn need Remote debugging ... struggling around how to enable it... finally getting mad and fire up a shell to call mvnDebug, then struggling around to create a new remote debug config for the given project (have I really checked all dependent source projects ....??)
So to make this really useful "Debug As" should only provide these items:
The text was updated successfully, but these errors were encountered: