Posts

How to run AEM in Debug mode

Image
 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. you can verify AEM from the browser by accessing http://localhost:4502/aem/start.html 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 val...