phpxdebugzend-debugger

Configuration parameter in xdebug for allowing multiple hosts on remote machine


I am working on one web application. The project located on my linux box i.e. server. We are remotely accessing this machine from Windows.

I am using xdebug for debugging along with Eclipse PDT.

xdebug is installed on my server. The below configuration is set in the php.ini file (which is located on the server):

xdebug.remote_enable=1
xdebug.remote_host=10.88.36.1
xdebug.remote_port=9000
xdebug.remote_handler="dbgp"
xdebug.remote_log = /tmp/xdebug.log

After doing the above configuration setting in php.ini for xdebug, it's allowing only one host ( i.e. 10.88.36.1)

I want to allow for multiple hosts. I know in zend debugger there is a configuration parameter option which does this i.e.

zend_debugger.allow_hosts=10.88.36.28, 10.88.36.1

Is there an equivalent option for xdebug so that i can able to allow multiple hosts to have access to server remotely?


Solution

  • This discussion suggests using a 'DBGp proxy'. The linked PDF gives a general idea of what to look for. Further research shows only one implementation: Active State DBGp Proxy which is distributed as part of the Komodo package. Configuration is documented here. A slightly older version is available separately.