There is a java application execute via shell script or deployed on application server like Tomcat, Jboss.

How to set debugging manually for eclipse with Java remote application?