September 22, 2020
Estimated Post Reading Time ~

Configure and start remote debugger in Eclipse

Set the remote debugger configuration in Eclipse, to debug the running application code and identify the code issues.

Step 1: Open the Debug perspective from the toolbar. if you don't see the debug perspective option in your toolbar, then open the perspective from this path in Eclipse. 
Windows >> Perspective >> Open perspective >> Others >> Debug  
  1. Click on the perspective drop-down option very next to the bug symbol.
  2. Select the option Debug configuration

Debug Configuration in Eclipse

Step 2: Debug Configuration will open a new window(below is the screenshot).
  1. Click on the Remote Java Application option from the left side rail.
  2. Click on the New Launch configuration(new configuration) button. As shown in the screenshot below.

Remote Java Application setup

Step 3: Once you click on the new configuration button, a configuration setup option will appear right side on the same window. Switch to the connect tab, if you are not on the connect tab by default.
  1. In the Name section, please provide a valid name.
  2. In the Connection Properties section specify the host and port on which your application is running. 
    e.g. 
    Host: localhost
    Port: 30303 (default AEM debug mode port)
  3. Project: Select the core folder of your project.
  4. Connection type: Keep it as Standard.

Debugger remote connection setup

Step 4: Now switch to the source tab, next to connect and configure your Java project. Below is the screenshot.
  1. Switch to source tab
  2. Click on Add option
  3. Select Java Project option
  4. Hit Ok button
  5. Select your project 
  6. Hit Ok button
  7. After successful selection, your project gets added to the source section.  

Debug project setup in Eclipse

You have successfully set up the debugger with your remote application. Now run or tune your application in debug mode and start the debugger in Eclipse from a debug perspective to listen to the request from your application server to Eclipse.


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.