php - Homestead 2 xdebug doesn't work -


i have homestead vagrant vm setup. xdebug setup remote debugging out of box.

i can see in here /etc/php5/fpm/conf.d/20-xdebug.ini , doing php -i | grep 'xdebug'

i've setup breakpoint in default index.php , clicked 'start listening php debug connections' in ide phpstorm.

i have installed xdebug helper chrome , turned on, setting ide string phpstorm in it's settings.

i've tried setting different ports in both ide , xdebug settings.

i've tried listening these ports sudo nc -l 9002 on both host , guest machines, nothing connects problem here xdebug settings in php server.

posting own answer here posterity in hope saves time trawled google answer , spent several hours stuck on this.

when doing sudo netstat -taupen saw hhvm listening on port 9000 on vm should have been clue why wasn't working, set hhvm: false in homestead.yaml no avail.

after more fiddling saw phpinfo() giving message of 'hiphop', quick @ google again led me hhvm.

what didn't before reprovision homestead needed when changing stuff in config. after homestead provision hhvm disabled , xdebug working.

also word of warning, editing xdebug settings in ini requires restart of php fpm, nginx alone not enough. sudo service php5-fpm restart.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -