Creating a remote PHP project/debugging with XDebug

Sven-Thorsten Fahrbach's Avatar

Sven-Thorsten Fahrbach

05 Oct, 2010 06:28 AM

Hi all

I've got a fairly large PHP project on a server that I would like to manage and to debug with Eclipse/XDebug.
My current solution for this is to mirror the site on a server in my local network. Eclipse works very well with that setup. Every time a file is changed on the local mirror it gets synchronized to the public server on the net via iwatch and unison. As it is however, it seems a bit hackish (with a bunch of helper scripts shipping around synchronization glitches) and it is indeed somewhat unreliable (iwatch still seems to ignore changed files in some cases despite careful testing of the required file events - it kicks in on the events "close_write", "moved_from", and "delete" which should be sufficient). Still, there should be an easier and cleaner way to achieve the same thing.

So I tried the Aptana plugin for Eclipse. I can create a new project and establish a connection to the remote server. I can work with that as I would with an ordinary local project. I can't, however, create a debug profile for XDebug. I go to "Debug Configurations" -> right click "PHP Web Page" -> choose "New". I enter a name for the configuration, choose "XDebug" as "Server Debugger", choose my "PHP Server" (it's the same server configuration as in the working setup described above, so that shouldn't be the problem). The problem is choosing a file as the entry point for the debugger as I can't choose my remote connection in the "Select File" dialog. The parent folder for the remote project shows up in the dialog but beneath that it's empty. When I double-click the parent folder, its name shows up in the "File" text field but after closing the debug configuration dialog, the debug button has no effect.

Another handy solution could be the Remote System Explorer plugin. If you right-click on a folder in the Remote Systems view you get an option called "Create remote project". However, on clicking the option I get an error message reading "Internal Error: org.eclipse.rse.ui.RSEUIPlugin.getTheSystemRegistry()Lorg/eclipse/rse/model/SystemRegistry;" This is in Gnome on Ubuntu 10.04. I tried the same on a Windows Vista machine. Initially, the plugin and the "Create remote project" option seem to work and I get a progress bar indicating that files are being imported (or whatever it is the plugin does in that step) but it hangs after a while. Last time I'd been waiting for about two hours before cancelling it.

Does anybody either have a bugfix/workaround for the problems with these two plugins or another solution to get Eclipse to work with a project on a remote server while still being able to use XDebug?

Any help will be greatly appreciated and thanks in advance! :-)

Sven-Thorsten Fahrbach

  1. Support Staff 2 Posted by Shalom Gibly on 08 Oct, 2010 07:08 PM

    Shalom Gibly's Avatar

    From the RSE error, I can guess you are dealing with the PDT support that you installed into the Studio. Am I right?
    If this is the case, you should probably direct this issue to the PDT team under the
    However, in case you are using our old Aptana PHP plugin to debug/launch your project, you should know that we are working on introducing it back into the new Studio 3. So, if this issue was occurring on our old PHP plugin, please submit a ticket through our lighthouse account ( so we can verify that it will be corrected in the new version.
    -Shalom G

  2. Shalom Gibly closed this discussion on 08 Oct, 2010 07:08 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac