您的位置:首页 > 运维架构 > Linux

CentOS7下安装和使用Xdebug

2016-12-27 18:13 375 查看
wget http://xdebug.org/files/xdebug-2.4.0rc4.tgz tar xvzf xdebug-2.4.0rc4.tgz
cd xdebug-2.4.0RC4
phpize
./configure --enable-xdebug --with-php-config=/usr/local/php/bin/php-config

红色配置自己的php-config目录
make
make install



Installing shared extensions: /usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/

成功编译安装后,Xdebug会显示编译完成的.so文件目录,我们要记录下这个目录,让当前的PHP环境支持Xdebug调试。
编辑php.ini,加入下面配置,一般的功能都打开了

zend_extension = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so"
xdebug.remote_enable = 1
xdebug.remote_connect_back = 1
xdebug.remote_port = 9000
xdebug.scream = 0
xdebug.cli_color = 1
xdebug.show_local_vars = 1
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: