1. 程式人生 > >xdebug的安裝測試

xdebug的安裝測試

ted markdown 如果 supported 安裝測試 port configure logs debug

1.下載

php -version
PHP 7.2.0 (cli) (built: Dec  7 2017 23:07:46) ( NTS DEBUG )

如果PHP版本是7.2以上的必須要下載Xdebug 2.6.0, 因為Xdebug 2.5.5只支持[5.5.0, 7.2.0)

checking Check for supported PHP versions... configure: error: not supported. Need a PHP version >= 5.5.0 and < 7.2.0 (found 7.2.0)

1.安裝和配置

phpize

./configure

make && make install

zend_extension="xdebug.so" (php擴展分兩種, 普通的也是我們最常見的extension和比較高級的zend_extension ,註意這個是zend_extension)

這是我php.ini的配置:

zend_extension="xdebug.so"
; xdebug config
xdebug.profiler_enable=on 
xdebug.trace_output_dir="/tmp/xdebug/xdebug_trace"
xdebug.profiler_output_dir="/tmp/xdebug/xdebug_profiler"

xdebug的安裝測試