This blog is written to demonstrate how to setup debug environment for Hybris ECP(Enterprise Commerce Platform).

 

 

1. start Hybris server via debug option

 

 

 

2. import folder <hybris installation folder>hybrisbin into Eclipse.

 

 

Right click on the extension you want to debug. In my example it is yacceleratorstorefront.

 

 

 

Choose Debug Configuration from context menu. Use Remote Java Application for debug configuration and connect to port 8000.

 

 

 

3. Set breakpoint in file binext-templateyacceleratorstorefrontwebsrcdehybrisplatformyacceleratorstorefrontfilterscmsCMSSiteFilter.java.

 

And access the storefront url below and try to open a catalog:

 

 

Then breakpoint is triggered:

 

 

 

 

After you press continue in debugger, you could observe the detail page with url inspected in debugger as expected.
Sara Sampaio

Sara Sampaio

Author Since: March 10, 2022

0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x