ubuntu 下 安装xdebug

root@homestead:/etc/php/7.1/fpm/conf.d# vim 20-xdebug.ini 

zend_extension=xdebug.so

xdebug.remote_enable = 1

xdebug.remote_connect_back = 1

;xdebug.remote_host=192.168.0.102

xdebug.remote_log=/tmp/xdebug.log

xdebug.remote_port = 9000

xdebug.max_nesting_level = 512

xdebug.remote_req = req

xdebug.idekey=PHPSTORM

~                        

重启sudo service php7.1-fpm restart   (注意 php版本)

原文地址:https://www.cnblogs.com/wzjwffg/p/10239832.html