Note: This is a tested approach and works for AEM 6.4
Step 1: Add the Remote Debugging JVM Parameter
In Start.bat update 'CQ_JVM_OPTS' by adding below code
-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n
Step 2: Start a remote debugging session in Eclipse
Demo Video
More Like This:
AEM 6.5 Site related new features
AEM 6.5 Specific new features in Assets section
New Features in AEM 6.5 Forms
Foundation updates in AEM 6.5 which a developer should be aware of
Cloud Manager for AEM 6.5 New features
Storage concepts in AEM 6.5
HTML Template language updates which needs to be observed with AEM 6.5
Step 1: Add the Remote Debugging JVM Parameter
In Start.bat update 'CQ_JVM_OPTS' by adding below code
-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n
Click on image to see it big |
Step 2: Start a remote debugging session in Eclipse
- Open Eclipse then choose Run > Debug Configurations.
- Right-click 'Remote Java Applications' and select 'New'.
- Select the AEM project under 'Project'.
- Under 'connection Properties' enter the host. For local dev machine it is 'localhost'.
- Enter the port configuration of the jvm parameter defined in step 1. In the example, we have given port number as 8000.
- Save the configuration.
- Now double-click the newly saved configuration in the Debug Configurations screen.
Demo Video
More Like This:
AEM 6.5 Site related new features
AEM 6.5 Specific new features in Assets section
New Features in AEM 6.5 Forms
Foundation updates in AEM 6.5 which a developer should be aware of
Cloud Manager for AEM 6.5 New features
Storage concepts in AEM 6.5
HTML Template language updates which needs to be observed with AEM 6.5