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.
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, eg:
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
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
(In windows) or ./hybrisserver.sh debug
(In linux) extensions
in eclipse cartPageController.java
) Run > Debug Configurations
(shortcut: Alt + r + b
) Remote Java Application
in your left pannel of popup Remote Java Applicaiton
and click on new Apply
Debug
to start your debug mode
Nowe enjoys the debugging by putting breakpoints.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.