ubuntu& phpstorm & xdebug 调试 php

前面已经写了其他环境的配置,这里只做简单介绍:

sudo apt-get install php-xdebug

php -v 后显示如下:

 在 /etc/php/7.0/mods_availabel 下会增加 xdebug.ini ,编辑这个文件;添加 如下内容:

xdebug.idekey="PHPSTORM"
xdebug.remote_handler = "dbgp"
xdebug.remote_mode = "req"
xdebug.remote_host=127.0.0.1
xdebug.remote_enable=on
xdebug.remote_port = 9001   //这是设置端口 可以改 只要下面这是phpstorm 一致就可以 
xdebug.remote_autostart = no

 重启PHP : /etc/init.d/php7.0-fpm restart 

其他phpstorm配置,请参照之前写的

其他参考地址

猜你喜欢

转载自blog.csdn.net/Dafei4/article/details/83115657