[xdebug-general] No remote debugging throught external ip adress

From: David Coll <david.coll.78[@]gmail.com>
Date: Fri, 25 Feb 2011 09:46:21 +0100

Just to know, the purpose of this setup is to use debugging while working on
a Facebook app (into an iframe). But this doesn't matter in the explanation.

Here is the setup. Running on 2 computer on a local network : is MyServer on Debian / Nginx / php5 with xdebug is MyWorkComp on Win7 / Eclipse IDE / Firefox with xdebug

Both computer are behind a router
The whole local network can be access by it's external ip 80.xx.ext.ip .

Running the pydbgpProxy on the server.

When I call a debug session throught Firefox accessing local address , it works, yeah ! IDE connect to xdebug throught proxy no
problemo. Running a normal debug session.

   - xdebug.remote.log gets updated correctly
   - $_SERVER[REMOTE_ADDR] => (myWorkComp)

But ! When I call a debug session throught the external ip (80.xx.my.ip),
the whole debug session doesn't start. I get an instant response (debug
session not launched at all).

   - xdebug.remote.log gets no update. So I don't know where to correct
   is created. So there's something going on... ?
   - $_SERVER[REMOTE_ADDR] => (the router internal ip)

Here is php.ini stuff :
xdebug.remote_enable = on
xdebug.remote_handler = "dbgp"
xdebug.remote_connect_back = 1
#xdebug.remote_host =
#xdebug.remote_host =
xdebug.remote_host =
xdebug.remote_port = 9000
xdebug.remote_mode = req

and the command to launch the proxy :
./bin/pydbgpproxy -i -d
So, basically, I want to access my app throught it's external ip and be able
to launch a remote debug session.
The pydbgpproxy is launched and the IDE is connected to it, what am I doing
wrong ?

Hope I'm clear and what I want a do is possible, maybe I don't understand
something somewhere. Help :)

ps. I've seen a guy who did this
he was running it's server on it's working computer I think, not with remote
Received on Fri Feb 25 2011 - 08:46:44 GMT

This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST