In my project properties -> actions: Debug file via main() I had added as mentioned above
Env.MAVEN_OPTS=-Xms512m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=128m -Xverify:none -Xnoclassgc
whitch attached the debugger but not with my project. I added -Xdebug -Xrunjdwp:transport=dt_socket,server=n,address=${jpda.address}
to my exc.args and now its working perfectly!
exec.args=-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n -classpath %classpath ${packageClassName}
This is the complete config of my Debug file via main() and Run file via main()
exec.args=-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n -classpath %classpath ${packageClassName}
exec.executable=java
exec.classpathScope=${classPathScope}
jpda.listen=true
Env.MAVEN_OPTS=-Xms512m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=128m -Xverify:none -Xnoclassgc