Debug remote liferay server via Eclipse

Other topics

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:

  1. Go to Run->Debug Configurations->Remote java application:

enter image description here

  1. Create a new configuration from Remote Java Application:

enter image description here

  1. Enter the given details:
 Host name:localhost(For local instance)or Ip of the machine 
 Port:8000(By default)
  1. Click Debug to intitiate attachments to the server instance.

Contributors

Topic Id: 7891

Example Ids: 25631

This site is not affiliated with any of the contributors.