Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the Steps for Debugging Java Web Application?

Tags:

java

debugging

I joined a project which has been already developed and its an Web Application deployed on Tomcat Server.

I have configured the Web Application on my local Tomcat Server and it is running fine. I want to start debugging the Application but I am not sure where to start from and how to debug an Java Web Application from Eclipse and so my question is

Q: How to Debug Java Web Application which is running on Tomcat Server on Local Machine in Eclipse Environment {Pointers to useful resources or other steps would be highly appreciated}?

like image 395
Rachel Avatar asked Jul 11 '10 03:07

Rachel


2 Answers

There are at least a couple of ways to do this:

  • A quick search turned up a tutorial to use remote debugging in eclipse with tomcat to connect eclipse to the java process running tomcat.
  • If you create your project as a Dynamic Web Project using eclipses Web Tools Platform plugin then you can deploy to and debug tomcat from within eclipse easily.
like image 167
krock Avatar answered Nov 17 '22 23:11

krock


Just stop your server from normal start mode and click on debug mode. Soon, after the server shows debugging,synchronised, continue using the web apps as you do normally. But before that, you must provide breakpoints and you can see the results that you need.

Works for me.

like image 40
Akhil KC Avatar answered Nov 17 '22 22:11

Akhil KC