debugging JSP in eclipse running on SAP Hybris Server

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



debugging JSP in eclipse running on SAP Hybris Server



I not able to enter into the debug mode in eclipse, I'm building an application using SAP Hybris.
Here we are using builtin Hybris server.




4 Answers
4



Was the Hybris server started in the Debug mode ? If yes, make sure that the port used by the server for debugging is the same with the one you are trying to connect to !



The port which is used by Hybris should be logged at the server startup, e.g:



Listening for transport dt_socket at address: 8000



add this line tomcat.debugjavaoptions=-Xverify:none -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=8000,suspend=n to your local.properites and then execute ant all to update tomcat configuration and after that if you run platform using hybrisserver.bat debug it will start in debug mode. Make sure your eclipse remote debugger is trying to connect on 8000 port


tomcat.debugjavaoptions=-Xverify:none -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=8000,suspend=n


ant all


hybrisserver.bat debug



Also, you will have to let the JSP compile first (first request). so, you will have to reload the page again for the debugger to stop for you.



Thirdly, the debugger may not stop at any random piece of JSP code. You will likely have to add a scriptlet (simple sysout) and add the debug point there to be able to engage the debugger.



Hope, you are looking for how to debug hybris application?



As Hybris runs in builin server, you can debug it as Remote
Java Application from Eclipse


hybrisserver.bat debug


./hybrisserver.sh debug


extensions


cartPageController.java


Run > Debug Configurations


Alt + r + b


Remote Java Application


Remote Java Applicaiton


Apply


Debug


debug mode



Nowe enjoys the debugging by putting breakpoints.





I know this procedure, But I'm not able to debug JSP.It will not stop at breakpoints
– vinay more
Feb 17 at 4:32







By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

Creating a leaderboard in HTML/JS