How to debug Hybris application?


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


  • start the server with hybrisserver.bat debug (In windows) or ./hybrisserver.sh debug (In Linux)
  • Import all required extensions in eclipse
  • Open any Java file (cartPageController.java)
  • Open Run > Debug Configurations (shortcut: Alt + r + b)
  • check for Remote Java Application in your left panel of popup
  • Right click on Remote Java Applicaiton and click on new
  • Create a new configuration by clicking on Apply
  • Click on Debug to start your debug mode
Nowe enjoys the debugging by putting breakpoints.


Author Image

Ankitkumar Patel

Sr. SAP Hybris consultant, having 6+ years experience in Hybris, Java, J2EE. Extensive hands-on experience in SAP Hybris development, third-party integrations with Hybris, project architecture and design... Read more

Comments

Popular posts from this blog

Hybris flexible search query examples

How to remove or update all data records in Hybris?

Hybris backoffice customization