osx - IntelliJ PHP debugger not connecting -
i've set php 5.6 , apache on mac , have intellij php plugin installed (2016.2). problem ide doesn't want connect local server.
i've added following lines php.ini:
[xdebug] zend_extension=/usr/local/cellar/php56/5.6.24/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so xdebug.remote_enable = 1 xdebug.remote_autostart = 1 xdebug.remote_port = "9000"
and when run php -v
get:
zend engine v2.6.0, copyright (c) 1998-2016 zend technologies xdebug v2.4.0, copyright (c) 2002-2016, derick rethans
and phpinfo()
shows
xdebug.remote_enable on on
xdebug.remote_port 9000 9000
but intellij shows:
xdebug.remote_enable 0
i've checked, i'm pointing right php.ini
(checked path , other changes appear when file edited).
i tried configurations (including ide key) nothing seems work.
is there way can check if debugging working (i.e. ide not recognizing or server faulty), because @ point don't know problem may be.
the best way collect xdebug log such unsuccessful debug session see has say. debug not work (ide shows no reaction) xdebug connects somewhere fine (e.g. service .. described below).
there chance have php-fpm
running on computer (that depends on how installed php -- tool have used that). php-fpm default uses same tcp 9000 port xdebug does.
sudo lsof -np -itcp -stcp:listen
run command in terminal -- should tell (after filtering results on 9000
keyword) services listening on port.
if it's indeed php-fpm
.. changing xdebug port default 9000
other (e.g. 9001
or other unused port) in both ide settings + php.ini solve issue.
Comments
Post a Comment