to remotely debug servers, local java executions, … add the following arguments:
-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n
You can then connect with eclipse, starting a remote java debug on the given port. here that is 8787.