Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to debug a maven project in Eclipse?

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?

like image 993
user3014213 Avatar asked Nov 20 '13 17:11

user3014213


1 Answers

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.

like image 132
Eugene Kuleshov Avatar answered Oct 25 '22 11:10

Eugene Kuleshov