Follow these steps to set up remote debugging in Eclipse.
• Open your java project.
• Select project.
• Click Run -> Debug Configurations as shown below.
• A new dialog box will open with different configuration options. Select “Remote Java Application as shown below.
Debug Configurations Option with Remote Java