To debug a server instance, start in debug mode. To do so, configure these parameters to be passed to the server:
-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
to setenv.bat(Windows) or setenv.sh(Unix)
These initialize the server in debug mode, and listen for debug requests on the given port. Start the server and post the config.
In eclipse, the remote debug config needs to be configured to attach the source to the remote server. Follow the given steps:
Host name:localhost(For local instance)or Ip of the machine
Port:8000(By default)