Ubuntu16.04编译安装xdebug(phpstorm)

下载xdebug

https://xdebug.org/download.php

安装xdebug

$ cd xdebug-x.x.x
$ phpize (or /path/to/phpize  ).
$./configure --enable-xdebug (or: ../configure --enable-xdebug --with-php-config=/path/to/php-config if php-config is not in your path)
$ make
$ make install
// add the following line to php.ini: zend_extension="/wherever/you/put/it/xdebug.so"

在php.ini中加入已下配置 注意自己的xdebug.so路径

zend_extension="/usr/local/php-7-1-3/lib/php/extensions/no-debug-non-zts-20160303/xdebug.so"
xdebug.auto_trace = on
xdebug.collect_params = on
xdebug.collect_return = on
xdebug.profiler_enable = on
xdebug.profiler_output_dir ="/usr/local/php-7-1-3/ext/xdebug_profilers"
xdebug.trace_output_dir = "/usr/local/php-7-1-3/ext/xdebug_traces"
xdebug.remote_enable = on
xdebug.remote_host = 127.0.0.1//随你喜欢
xdebug.remote_port = 9999 //随你喜欢
xdebug.remote_autostart = on
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值