We were creating a maven web project which needs to be deployed on the Tomcat. As we all know deployment on Tomcat 7.0.40 is very easy just copy your war file in the webapps folder and done.
This deployment does not allow us to debug application via eclipse debugger.
We wanted to deploy our application on Tomcat and debug this in development environment. I did Google to find solution for our problem, but there is no luck to find proper solution. After trying couple of solution I came across a solution, I am writing this blog hoping this may help other as well.

Steps to follow for the Tomcat configuration:
Add a Tomcat server without any web application in the Eclipse server section.


Open Tomcat configuration from Eclipse server section.
Add an external application (packaged/exploded war file) under module tab.
Give a name (say mywebapplication) to this application.


Attach source code to this Application on overview tab > Open launch configuration > source tab.
In case you want to change port change this in the configuration file overview tab > Http 1.1 port number from 8080 to say 9090.


Once this setting is done run Tomcat in debug mode from the Eclipse server section.
Now your web application is deployed on Tomcat with the debug capability.