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.