cancel
Showing results for 
Search instead for 
Did you mean: 

Best learning path to learn how to Debug Hybris Extensions

0 Kudos
1,071

Hi, I am new to Hybris and come from an AEM background.

I am trying to set up a Local Development environment for a Hybris project I have to start working on. There is several custom extensions already done.

I can build all the extensions from from hybris/bin/platform/ using ant clean all. I can start the server in both normal mode (I am on a mac book) using ./hybrisserver.sh or ./hybrisserver.sh debug

In HAC I can see my extensions.

I have set up STS - Spring Tool Suite 3.9.1 with the SAP Hybris Plugin.

I import my Hybris platform into Spring using the Plugin.

This also pulls in the custom extensions into STS.

However, in STS I get a lot of dependency errors, hundreds, and if I try to set up a Run => Debug Configurations => ..... on one of the JUnit test classes it gives me two errors. The first is expected (errors in the project) The second is a timeout connecting to Hybris Server

I am used to debugging a Tomcat project by creating a Server Connection inside of Ee, but that has not worked in Hybris for me.

if anyone has advice for me I would greatly appreciate it, and any pointers to documentation on how to debug custom Hybris extensions would be also welcomed.

Regards Clive

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

Hi If you use Intellij IDEA and https://plugins.jetbrains.com/plugin/7525-hybris-integration it will create debug configuration for you automatically during project import. After you've installed the plugin just use "Import Project" from IDEA's welcome dialogue or "File->New project from existing sources" then choose a directory which contains both your Hybris installation and your custom code and chose "Hybris" import and simply follow the wizard. After the import you will see a dubug configuration already created for you:

Then simply start hybris with "./hybrisserver.sh debug" or "./hybrisserver.bat debug"

Just in case if you need support in future you can use https://hybris-integration.atlassian.net/servicedesk or send and email to support@hybris-integration.atlassian.net

Former Member
0 Kudos

Hi Clive, there is on "old" trail that describes debugging from ee, but it still should work (at least it does with similar configuration in Intellij for me): https://wiki.hybris.com/display/R5T/Trail+~+Preparation#Trail~Preparation-DebuggingfromEe

Nevertheless you still need to start your server from console using <plattform_home>\hybrisserver.bat debug