I am using maven project in eclipse mars . My Project is not building in the eclipse so i am compiling my project through dos mode. I not being able to debug the code.so somebody please help me to solve issue
Asked
Active
Viewed 173 times
-1
-
Care to explain your issue ? What do you want to debug, is it a webapp ? On which server are you deploying it ? (Are you creating a war/jar using maven ? ant ?) – Florian Oct 28 '15 at 10:50
-
I want to debug my bean sample.java to check the list is populating correct value to database or not . I am using tomcat 7 server and i am creating the war from maven – sudonsan Oct 28 '15 at 10:53
1 Answers
1
You can debug a tomcat server even if you don't run it inside Eclipse, using remote debug.
Please take a look at Remote debugging Tomcat with Eclipse or this blog for Intellij / this one for Eclipse
The idea is to start your tomcat server in debug mode then connecting your debugger to the "remote" (even if on your local PC) JVM (The JVM of the server).