The AEM SDK’s local quickstart allows remote Java debugging from your IDE, allowing you to step through live code execution in AEM to understand the exact execution flow.
To connect a remote debugger to AEM, the AEM SDK’s local quickstart must be started with specific parameters (-agentlib:...
) allowing the IDE to connect to it.
$ java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005 -jar aem-author-p4502.jar
address
specifies the port AEM listens on for remote debug connections and can be changed to any available port on the local development machine.aem-author-p4502.jar
) is the AEM SKD Quickstart Jar. This can be either the AEM Author service (aem-author-p4502.jar
) or the AEM Publish service (aem-publish-p4503.jar
).Most Java IDE’s provide support for remote debugging of Java programs, however each IDE’s exact set up steps vary. Please review your IDE’s remote debugging set up instructions for the exact steps. Typically IDE configurations require:
localhost
.address
parameter when starting AEM SDK’s local quickstart.