Ubuntu中php安装XDebug

(1)安装xdebug

sudo apt-get install php-xdebug

(2)查询扩展路径

find /etc/ -name "xdebug.so"

(3)编辑php.ini文件

php -i | grep "php.ini"

(4)末尾加入以下配置

[xdebug]
zend_extension="扩展路径"
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000

(5)测试info.php

<?php

phpinfo()

?>

浏览器输入http://localhost/info.php

猜你喜欢

转载自blog.csdn.net/u011086209/article/details/84840698