Debug remote liferay server via Eclipse
Debug remote liferay server via Eclipse(without Liferay Remote IDE connector eclipse plugin)
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:
- Go to Run->Debug Configurations->Remote java application:
- Create a new configuration from Remote Java Application:
-
Enter the given details:
Host name:localhost(For local instance)or Ip of the machine Port:8000(By default)
-
Click Debug to intitiate attachments to the server instance.