centos7下安装php7扩展xdebug和phpstrom远程调试配置

首先找到自己环境所对应的xdbug版本 

https://xdebug.org/wizard.php 

把phpinfo的信息粘贴到 框框中 可以找到对应的版本

tar -xvzf xdebug-2.6.1.tgz

cd xdebug-2.6.1

phpize

./configure  --with-php-config= /www/server/php/72/bin/php-config

make && mkaeinstall

安装成功后显示

/www/server/php/72/lib/php/extensions/no-debug-non-zts-20170718/

扫描二维码关注公众号,回复: 6791868 查看本文章

vi  /www/server/php/72/etc/php.ini

zend_extension = /www/server/php/72/lib/php/extensions/no-debug-non-zts-20170718/xdebug.so

; 这里是远程端口,远程端口是可以根据自己设置的

xdebug.remote_port=9000

; 远程自动启动,我们设置的是1,也就是启动

xdebug.remote_autostart=1

; 自动跟踪,我们设置的也是1,也就是自动跟踪

xdebug.auto_trace=1

;如果开启此,将忽略下面的 xdebug.remote_host 的参数

xdebug.remote_connect_back = 1

;注意这里是,客户端的ip  <即IDE的机器的ip,不是你的web server>

xdebug.remote_host = "116.7.97.60"

; 远程开启,1为开启

xdebug.remote_enable=1

;这里的协议只能是dbgp

xdebug.remote_handler = "dbgp"

                                         

;模式即脚本启动即连接

xdebug.remote_mode = "req"

xdebug.idekey= "PHPSTROM"

猜你喜欢

转载自blog.csdn.net/PKyourself/article/details/85220512