Debugging a Web service running in tomcat is really useful some times. Following are the necessary steps for that.
1) Add following line to startup.bat file within
set CATALINA_OPTS=-Xdebug -Xnoagent -DJava.compiler=NONE Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
2) Create a new eclipse debug configuration of type Remote Java Application for the project and set its connection properties as below.
Host: localhost
Port:8000
3) Start tomcat and run the debug configuration.
Now, you can debug your web service.
Subscribe to:
Post Comments (Atom)
0 Response to "How to Debug a Web Service running in Tomcat"
Post a Comment