Debug Java Code in AEM using IntelliJ
1) First start AEM in debug mode use below command for the same
java -jar aem-author-4502.jar -fork -forkargs -- -Xdebug -Xrunjdwp:transport=dt_socket,address=59865,suspend=n,server=y -Xmx1520m -XX:MaxPermSize=512m -XX:-UseSplitVerifier
2) Make sure the debug port number 59865 is free
3) Go to IntelliJ, Run Configurations, Remote and click on + icon
4) In the settings, mention the same port which is used while starting the AEM in debug mode
5) Select the debug configuration and click on debug icon , it should show below message
Connected to the target VM, address: 'localhost:59865', transport: 'socket'
6) Set debug points and make a request from Front End, and enjoy debugging !!
very useful information, the post shared was very nice.
ReplyDeleteTIBCO Businessworks6x Online Training
Excellent Blog! I would Thanks for sharing this wonderful content.its very useful to us.I gained many unknown information, the way you have clearly explained is really fantastic.
ReplyDeleteFull Stack Training in Chennai | Certification | Online Training Course
Full Stack Training in Bangalore | Certification | Online Training Course
Full Stack Training in Hyderabad | Certification | Online Training Course
Full Stack Developer Training in Chennai | Mean Stack Developer Training in Chennai
Full Stack Training
Full Stack Online Training