How to run AEM in Debug mode
Hello Everyone,
Today I would like to share useful information for each and every Developer who works in AEM must know about how to run AEM in Debug mode.
Running AEM in Debug mode will help in Debug the backend code, understand the flow and write code very efficiently.
To Start AEM in Debug mode please follow below points:
1. Go to the local AEM directory path and open the command prompt( the location where you have copied Jar and license properties files). Run the below command
java -Xmx8g -agentlib:jdwp=transport=dt_socket,address=8085,server=y,suspend=n -jar aem-author-p4502.jar
it will start AEM with address 8085 and you can see the console log in command prompt as shown below.
2. Go to IDE. Here I'm using eclipse. Import your AEM project into eclipse.
3. Click on Debug Configurations and it will prompt a pop-up as shown below. Browse the Core module and enter the values as shown below and click Apply and Debug.
3. Now add the breakpoints in your java class and open a page and add the required component and refresh it. Verify the IDE and it will open in Debug mode. From there you can proceed :)
Hope this helps you!!
Thanks!!
Comments
Post a Comment