How to debug java web application?

xiaoxiao2021-03-06  44

http://ebxmlr.sourceforge.net/3.0/developer/debugging.html

For Instance, We Use Tomcat As Web Application Server and Eclipse As Web Application Server and Eclipse As Ide IN Windows, Then We Have to Do The Following Things:

1. Set Environment Variables JPDA_TRANSPORT and JPDA_ADDRESS IN CATALINA.BAT

E.G.

Set JPDA_TRANSPORT = DT_SOCKET

Set JPDA_ADDRESS = 9999

2. In Eclipse, Go to Run -> Debug, New A "Remote Java Application". Choose the According Project Name.

Fill The Tomcate Server Name and JPDA Port.

3. Start Tomcate with JPDA, Such AS "Catalina JPDA RUN".

4. Debug The Project in Eclipse.

转载请注明原文地址:https://www.9cbs.com/read-54148.html

New Post(0)