- Start AEM in debug mode (How to ? Check here )
- Open project in IntelliJ
- Configure IntelliJ as below :
Click on Add “Configuration” on top right side of IntelliJ
Click on + button –> “Remote”
Change “Port:” to port number used to start AEM in debug mode.