This post illustrates how to debug a Java Program which is executing stating from ANT script. This type of situation come across when executing a program which is in jar file and need to add additional parameters which were set up using ANT script arguments
Following is how we can write a ANT script , red highlight two lines support for the debug
fork="true">
The following screen shot illustrates way we can configure Idea IDE to debug Java processor , this port 5432 need to be same with IDE configuration
If you have any query please post