Configure xdebug under linux

Download link: https://xdebug.org/download/historical

 

View current php version adaptation: https://xdebug.org/docs/compat#versions

 

Reference address:

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

 

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

 

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

 

First, download xdebug and select the source code download on the website.

 

 

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

 

Edit the php.ini file and configure 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"

After the configuration is complete, restart the PHP service.

 

Guess you like

Origin blog.csdn.net/qq_41850577/article/details/109412465