Debugging remote JBoss server
From OpenKM Documentation
If you got problems on production environement this configuration is specially useful. But it might not be setting if you've not problem in these environments.
In $JBOSS_HOME/bin/run.sh script must be added the line.
JAVA_OPTS="-Xmx2000m -Djava.awt.headless=true -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000 "
Configure eclipse
Select the project and the host. Include in source your OpenKM java project.
You can debug normally, setting breakpoints etc...