ubuntu php7.0 debug,ubuntu PHP XDebug

1、https://github.com/xdebug/xdebug 根据步骤顺序执行

a) 错误一

遇到错误 ./rebuild.sh: 3: ./rebuild.sh: phpize: not found

vim ./rebuild.sh

将 phpize 替换为全路径 /usr/local/php/v7.1.9/bin/phpize

/usr/local/php/v7.1.9/bin/phpize && ./configure --enable-xdebug-dev && make clean && make -j 5 all && make install

b) 错误二

configure: error: Cannot find php-config. Please use --with-php-config=PATH

添加 --with-php-config=/usr/local/php/v7.1.9/bin/php-config

/usr/local/php/v7.1.9/bin/phpize && ./configure --enable-xdebug-dev --with-php-config=/usr/local/php/v7.1.9/bin/php-config && make clean && make -j 5 all && make install

解决完错误重新执行 sudo ./rebuild.sh

安装完成

2、修改php.ini

[XDebug]

xdebug.profiler_append = 0

xdebug.profiler_enable = 1

xdebug.profiler_enable_trigger = 0

xdebug.remote_enable = 1

xdebug.remote_mode = "req"

xdebug.remote_handler = "dbgp"

xdebug.remote_host = "127.0.0.1"

xdebug.remote_port = 9001

xdebug.idekey="php"

xdebug.remote_autostart = no

zend_extension = /usr/local/php/v7.1.9/lib/php/extensions/no-debug-non-zts-20160303/xdebug.so

xdebug官网:https://xdebug.org/

windows dll 下载地址:https://xdebug.org/download.php

标签:php,v7.1,XDebug,xdebug,usr,&&,ubuntu,PHP,local

来源: http://blog.51cto.com/jinliang/2343687

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值