liferay Debug remote liferay server via Eclipse Debug remote liferay server via Eclipse(without Liferay Remote IDE connector eclipse plugin)


Example

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.