I am new to spring and maven and I have one web application. I want to debug that application ,I have applied the breakpoints but still when I use debug application it doesn't come on the breakpoints. Can any 1 please tell how can i debug my program?
Asked
Active
Viewed 1,604 times
2 Answers
0
Just a guess: Are you running your project (with breakpoints) in DEBUG mode? Because if you use RUN mode - breakpoints won't be hit.

Ernestas Kardzys
- 1,719
- 2
- 16
- 21
-
Yes I am running my project in debug mode in configuration I have used "tomcat:run" – Sumeet Jan 09 '14 at 07:42
-
check this link http://stackoverflow.com/questions/12422125/how-to-set-agentlib-property-for-mvn-tomcat-plugin-jpda – Bassem Reda Zohdy Jan 10 '14 at 15:33
0
to enable debug mode you have 2 options: 1- use your server from the IDE for ex. eclipse in debug mode. 2- use remote debugging check this link http://davidsblog.eu/remote-debugging-of-tomcat-using-eclipse/
if you are using embedded servlet container as maven plugins you have to configure it for remote debugging as in above link

Bassem Reda Zohdy
- 12,662
- 3
- 33
- 39
-
I am using Eclipse and in eclipse I am using tomcat server I can run my program directly from eclipse but i want to debug it so please tell what should I write in configuration so that it ll debug the program like for running tomcat program i am using "tomcat:run " – Sumeet Jan 10 '14 at 06:10