Monday 9 May 2016

How to start Hybris server in debug mode

Generally a developer requires the server to be started in debug mode so that the code can be debugged easily. Follow the below steps.


Step 1: Add the below line in local.properties files

tomcat.debugjavaoptions=-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=8001,suspend=n -Xverify:none -DforceANSI=true

Step 2: Open command prompt. Go to platform directory. Start hybris server in debug mode using command hybrisserver.bat debug

Step 3: In eclipse go to debug configurations as shown below


















Step 4: Go to remote java application and right click and new. Give any name to it. Make sure hostname is localhost and the port number is same what is mentioned in local.properties file.

In the source tab, you can add all the projects which you want the debug to be worked on.













































Click on debug and happy debugging. In future just start the hybris server in debug mode as mentioned in step 3 and launch your debugger from eclipse.

1 comment:

  1. This comment has been removed by a blog administrator.

    ReplyDelete