I have installed xdebug on my MacBook Pro with PHP 5.6.29 and using sublimeXdebug as client (both server and client are on same machine).
It works perfectly fine when I connected to internet and xdebug.remote_host=192.168.0.35
. It is not working when I specify the configuration as xdebug.remote_host=127.0.0.1
or xdebug.remote_host=localhost
.
I won't be on internet all the time. And the internet address changes every time I connect to access point. I don't want to go the php.ini
file to edit the configuration each and every time I connect to internet.
How do I fix this?
My Xdebug configuration in /etc/php.ini
file is
zend_extension= /usr/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.remote_log="/var/log/xdebug/xdebug.log"