Ubuntu16.04编译安装xdebug(phpstorm)

版权声明:转载的时候提到我就行…… https://blog.csdn.net/SakuraLLj/article/details/69565296

下载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

猜你喜欢

转载自blog.csdn.net/SakuraLLj/article/details/69565296