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 15+ years experience in SAP Commerce Cloud (Hybris), SAP Spartacus. Extensive experience in SAP Hybris development, third-party integrations, 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?

How to Install temporary Hybris license?