This morning I had nothing better to do ( actually I had , but … ) so I thought “let’s try xdebug” . I’m working remote on a EC2 instance using Eclipse PDT . Installing xdebug is pretty easy , apt-get install php5-xdebug or something like that ( on debians) , you need to edit a .ini file then you create a debug profile in eclipse ( bla bla bla there’re a lot of tutorials about it ) .
Hit debug buton annnndd ….. “launching: waiting for xdebug session” . Wtf … doesn’t work .
Gogled a bit more , found that you should have the xdebug option xdebug.idekey to be the same with XDEBUG_SESSION_START used by the IDE . IN this case it’s ECLIPSE_DBGP . Netbeans eg. have netbeans-xdebug I think . Well, you can set it to whatever .
Hit button annndd … “launching: waiting for xdebug session” . Wtf … doesn’t work .
I remember I used xdebug some time ago , but I was running locally . So what could it be ? Well xdebug to help you need a remote address . By default is localhost . If you work remote , you should have instead of localhost your IP . Well , if you have a public IP , lucky you , but I bet you don’t have .
What to do ? SSH tunnel . You can do it . OR you could use the built-in option PDT have


I have also been struggling to configure some remote PHP debugging and was hoping you might be able to offer some guidance for my particular situation.
I am also using an EC2 server to host a PHP web application, but since the EC2 server requires a public key for authenticated connection, I cannot simply provide a password in the SSH Tunnel credentials. Is there a solution that I’m overlooking?
Also, you mention using the “built-in option PDT has”, but I’m not sure what you are referring to.
Thanks in advance!
July 28, 2011 @ 4:32 PM
@Brian Fox
Yes , I forgot to say about adding the private key .
Go first to
Preferences -> General -> Network Connection->SS2 . Use Add Private key … button to add the .pem file ( or .ppk) for your EC2 instance . Now Eclipse will know to use the auth key when doing a connection to the EC@ instance .Look at the screenshot to see about the built-in option I was talking about .
If you need to do remote editing you can use the RSE feature , just enter the username when ask for creditals .
July 28, 2011 @ 5:16 PM