(Wasn't able to comment on the given answer, so have to make another answer)
I realized that when launching Ant from Eclipse, you'll have to add fork="true" to the <java>
task. Also, it was first not clear to me how to write nested jvmargs, so here goes an example:
<java classname="..." fork="true">
<jvmarg value="-Xdebug" />
<jvmarg value="-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5432" />
...
</java>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…