Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.
SOLVED

AEM Code Debuggng

Avatar

Level 3

Hi all,

 

I want to debug aem code line by line and examine values of variables.

 

Could you point me to a tutorial for this please.

I do not need any complex code to debug. Just a simple component with a small Sling Model will be enough.

 

I have Visual Studio Code.

 

Appreciate all your replies.

 

Thanks,

RK.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 3

Hi all,

 

Thanks for all your replies.

I realize that debugging On Prem AEM is similar to that of On Prem.

 

But the below two tutorials are specifically for On Prem and are very useful:

1. How to debug AEM Project: https://www.youtube.com/watch?v=4jLOhWuPUuc

2. AEM Application Debugging with Visual Studio Code: https://jimfrenette.com/2019/12/aem-app-debug-visual-studio-code/

 

Now, this post could be closed.

 

Thanks,

RK.

View solution in original post

6 Replies

Avatar

Community Advisor

Avatar

Level 9

This page explains how to remotely debug AEM SDK using VS Code by configuring the AEM runtime and setting up the IDE to connect for live code analysis.

You can install the AEM WCM Core Components to obtain the same pages shown at https://www.aemcomponents.dev/ in your local AEM instance. At this point, you can configure the remote debugger and step through any component's code line by line.

Avatar

Community Advisor

you can watch this video:

 

https://experienceleague.adobe.com/en/docs/experience-manager-learn/cloud-service/debugging/debuggin...

 

-How to start your AEM server in debug mode.

-How to debug in VS code

-How to debug a servlet

Debug command : ` java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005 -jar aem-author-p4502.jar`

 

 

Avatar

Level 3

I am sorry.

 

Forgot to mention that I have AEM On Prem only, not Cloud.

 

Thanks,

RK.

Avatar

Level 3

Please guide me on AEM On Prem version of AEM Code Debugging.

 

Thanks,

RK.

Avatar

Correct answer by
Level 3

Hi all,

 

Thanks for all your replies.

I realize that debugging On Prem AEM is similar to that of On Prem.

 

But the below two tutorials are specifically for On Prem and are very useful:

1. How to debug AEM Project: https://www.youtube.com/watch?v=4jLOhWuPUuc

2. AEM Application Debugging with Visual Studio Code: https://jimfrenette.com/2019/12/aem-app-debug-visual-studio-code/

 

Now, this post could be closed.

 

Thanks,

RK.