Configure Eclipse for remote debugging
So we have our test script running. We now need to configure Eclipse to start listening for remote debug. Within Eclipse IDE, click on Run -> Debug Configurations. You should have a window similar to the one below.

Click on PHP XDebug Remote Script to select it, then click on New launch configuration icon. Name it something meaningful. On the main tab, make sure that Remote Debugging Tutorial project is selected. As for identification string, you can type anything. I like to keep it short, so I just choose 1.

On the Pathmap tab, click on new button. Since both the debug client and the MAMP server are on the same machine, the local path and the remote path are the same. In our tutorial case, it’s /Applications/MAMP/htdocs. Type the same path for remote path. Then click on Ok button.


The other 2 tabs are normally okay to leave as default. Then next, click on Debug button. Then go to debug perspective. You should see that Eclipse IDE is now ready for remote debugging.

Next, we’ll start remote debugging and we’ll step through the code and watch the variables as the program runs.





Nice article , In my opinion Remote Debugging is the single most feature which convinced me to migrate from Netbeans to Eclipse.
Thanks
Javin
How to setup remote debugging in Eclipse