ITPub博客

首页 > 应用开发 > IT综合 > Hybris ECP(Enterprise Commerce Platform)的调试

Hybris ECP(Enterprise Commerce Platform)的调试

原创 IT综合 作者:i042416 时间:2018-02-11 11:39:52 0 删除 编辑

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

1. start Hybris server via debug option

以debug模式启动Hybris服务器

2. import folder <hybris installation folder>hybris\bin into Eclipse. Right click on the extension you want to debug. In my example it is yacceleratorstorefront.

把bin文件夹整个导入Eclipse。


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

选择remote debug:


3. Set breakpoint in file \bin\ext-template\yacceleratorstorefront\web\src\de\hybris\platform\yacceleratorstorefront\filters\cms\CMSSiteFilter.java.

以打开storefront的UI为例,在上面提到的文件里设置断点。用浏览器打开UI,断点触发:

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

Then breakpoint is triggered:

从调试器里观察到的url和最后打开的产品明细页面的url一致。

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

要获取更多Jerry的原创技术文章,请关注公众号"汪子熙"或者扫描下面二维码:


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/24475491/viewspace-2151029/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
测试

注册时间:2018-01-20

  • 博文量
    3822
  • 访问量
    1982016