xdebug php extension of the use of vagrant

 

wget http://xdebug.org/files/xdebug-2.4.0rc4.tgz
tar xvzf xdebug-2.4.0rc4.tgz
cd xdebug-2.4.0RC4
phpize
./configure --enable-xdebug --with-php-config=/usr/local/php/bin/php-config

Red configure your php-config directory of
the make
the make install

 

 

 


Installing shared extensions: / usr / local / php / lib / php / extensions / no-debug-non-zts-20131226 /

After successfully compiled and installed, Xdebug displays compiled .so file directory, and this directory we want to record, let the current environment supports Xdebug PHP debugging.
Editing php.ini, add the following configuration, the general features are turned on

[xdebug]

zend_extension=/usr/local/php/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so
xdebug.idekey=PHPSTORM
xdebug.auto_trace=1
xdebug.remote_enable=1
xdebug.remote_host=172.16.3.61  #本地ip地址
xdebug.remote_port=9000
xdebug.remote_autostart=1
xdebug.remote_mode=req
xdebug.remote_handler=dbgp

Guess you like

Origin www.cnblogs.com/jiayoubobo/p/11088823.html