6
votes

I am trying to debug following maven project in Eclipse: https://code.google.com/p/cloudscale/

I followed the instructions of RickHigh (found here https://stackoverflow.com/a/19986408/3014213) and when I write mvnDebug exec:exec in Terminal the lines

Preparing to Execute Maven in Debug Mode
Listening for transport dt_socket at address: 8000

appears and after starting the Remote Java Application in Eclipse, the project is started BUT it does not hold on breakpoints...

Any ideas, what could go wrong?

2
Have you tried putting method breakpoints instead of normal breakpoints? - wjans
@webdev I already tried the solution described there, but it still doesn't work - user3014213
@wjans good idea, but doesn't work Could it be, that it is not possible, because the classes aren't testclasses? - user3014213
Can you also show us how you have configured the maven plugin and your remote debug options? I suppose it might be a forked process and that you should connect your debugger that the forked process rather than the maven process itself. - wjans

2 Answers

1
votes

When you install m2e plugin in Eclipse, it will show you a link in Console view to automatically connect debugger (i.e. create remote debugger launch configuration) to your process when it spills "Listening for transport dt_socket at address: 8000" message to the console. So, your debugger is basically one click away.

0
votes

The debugger may be connected to the wrong JVM - not the one created by exec:exec. Try remote debugging like here: https://stackoverflow.com/a/22367089/1878731