您的位置:首页 > 编程语言 > PHP开发

Ubuntu16.04编译安装xdebug(phpstorm)

2017-04-07 15:26 477 查看

下载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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  ubuntu xdebug