1. Right click on the project and go to Debug As -->Debug Configuration
2.On the opened window create a new Remote Java Application. Give a name to remote java application and go to Connect tab. Use default port 8000.
3. On the source tab select the scr folder of the project as shown below
4. update the start.bat file of the tomcat installation if using windows as shown below. Add jpda to the existing command
5. Set up the breakpoint in the java file as shown from where you want to start debugging
6. Start the tomcat server with below command
7. In eclipse start the debug mode as shown
8. Access the web application from browser and you will see eclipse light up in the bottom bar as shown. Control flow is stuck in the break point specified as in step 6 and you can start debugging from that point.







