Get the App
SLTechnology News&Howtos  ›  Network Security  › 

How to debug Hybris ECP

Shulou Source: shulou.com Published: 2022-05-31 19:18:16 10月03日 Update

How to debug Hybris ECP, in view of this problem, this article introduces the corresponding analysis and answer in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible method.

The following shows how to set up a debugging environment for Hybris ECP (Enterprise Business platform).

1. Start the Hybris server with the debugging option

Start the Hybris server in debug mode

two。 Import the folder hybris\ bin into Eclipse. Right-click the extension you want to debug. In my case, it is yacceleratorstorefront.

Import the entire bin folder into Eclipse.

3. Set breakpoints in the file\ bin\ ext template\ yacceleratorstorefront\ web\ src\ de\ hybris\ platform\ yacceleratorstorefront\ filters\ cms\ CMSSiteFilter. JAVA

Take opening the UI of storefront as an example, set a breakpoint in the file mentioned above. Open UI with a browser, and the breakpoint triggers:

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

Then breakpoint is triggered:

The url observed from the debugger is the same as the url of the product detail page that was last opened.

After pressing continue in the debugger, you can check the url in the debugger as expected to see the details page.

This is the answer to the question about how to debug Hybris ECP. I hope the above content can be of some help to you. If you still have a lot of doubts to solve, you can follow the industry information channel to learn more about it.

Tags: Files breakpoints debuggers questions folders more servers pages help services answers details easy to do consistent simple products enterprises examples information content Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Docker Xiaomi OPPO Reno MySQL