wget https://xdebug.org/download.php
tar xzf xdebug-2.4.0rc4.tgz
cd xdebug-2.4.0RC4/
phpize
./configure --enable-xdebug --with-php-config=/usr/local/php/bin/php-config
make
make test
make install
配置php.ini
zend_extension=xdebug.so
xdebug.idekey=PHPSTORM
xdebug.remote_connect_back=1
xdebug.remote_enable=on
xdebug.remote_port=9001
xdebug.remote_handler=dbgp
xdebug.auto_trace=1
xdebug.remote_log=/tmp/xdebug.log