linux下配置xdebug

下载地址:https://xdebug.org/download/historical

查看当前php版本适应:https://xdebug.org/docs/compat#versions

参考地址:

https://xdebug.org/docs/compat#versions

https://blog.csdn.net/m0_37477061/article/details/88970562

https://www.cnblogs.com/skyli665/p/9765926.html

首先,下载xdebug,在网站选择源码下载。

1、wget http://www.xdebug.org/files/xdebug-2.3.3.tgz

2、tar -zxvf xdebug-2.3.3.tgz

3、cd xdebug-2.3.3.tgz

4、phpize

5、./configure --enable-xdebug --with-php-config=/usr/local/php/bin/php-config

6、make && make install

编辑php.ini文件,配置xdebug

 [Xdebug]

zend_extension ="/phpstudy/server/php/lib/php/extensions/xdebug.so"

xdebug.remote_enable=1

xdebug.remote_handler=dbgp

xdebug.remote_mode=req

xdebug.remote_host=192.168.2.100

xdebug.remote_port=9000

 xdebug.idekey="PHPSTORM"

配置完成后重启PHP服务即可。

猜你喜欢

转载自blog.csdn.net/qq_41850577/article/details/109412465