To enable remote debugging in JBoss EAP 6, set DEBUG_MODE to true in standalone.sh
jboss-eap-6.4.0/bin/standalone.sh
Then follow mine Eclipse settings in my previous blog for JBoss EAP 5.
http://magnus-k-karlsson.blogspot.se/2016/03/remote-debugging-in-jboss-eap-5.html