If you are running AEM instance in Virtual Box, in order to configure the AEM debug settings follow the below steps-
1. Open the debug port in VM Box. Go to VM Manager, select the AEM instance -> Settings -> Network -> Port Forwarding
Add the debug port 8000 to whitelist it as shown in below image-
2. Go to following location where you have installed kitchen and Run the following command- bundle exec kitchen login aem-author-c
OR
Alternatively go to VirtualBox and enter into the aem box by starting it in general mode as shown below-
The box console looks like this-
When asked for username/ password, enter vagrant/vagrant (Default box password)
3. If you are using vagrant then edit your kitchen environment script to change the debug port-
and you are Done!
But, if you are not using Vagrant then follow the next steps.
4. Run sudo su and Go to /opt/aem/author/crx-quickstart/bin
5. Run vi quickstart
6. Change following line-
8. Stop and Start the AEM instance.
1. Open the debug port in VM Box. Go to VM Manager, select the AEM instance -> Settings -> Network -> Port Forwarding
Add the debug port 8000 to whitelist it as shown in below image-
2. Go to following location where you have installed kitchen and Run the following command- bundle exec kitchen login aem-author-c
OR
Alternatively go to VirtualBox and enter into the aem box by starting it in general mode as shown below-
3. If you are using vagrant then edit your kitchen environment script to change the debug port-
and you are Done!
But, if you are not using Vagrant then follow the next steps.
4. Run sudo su and Go to /opt/aem/author/crx-quickstart/bin
5. Run vi quickstart
6. Change following line-
CQ_JVM_OPTS=
'-server -Xmx2048m -XX:MaxPermSize=512M'
to add following in the last
-Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=8000,suspend=n
7. Run vi start and Repeat step 5 for this file too.8. Stop and Start the AEM instance.
No comments:
Post a Comment