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

本文提供了一步一步的指导来帮助读者下载并安装Xdebug。它包括了从下载Xdebug到配置php.ini文件的整个过程,并详细说明了如何启用Xdebug的各种特性如自动追踪、参数收集等。
1898

被折叠的 条评论
为什么被折叠?



