歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> CentOS 6.2 安裝Xdebug

CentOS 6.2 安裝Xdebug

日期:2017/2/28 15:58:32   编辑:Linux教程

php調試環境安裝
yum -y install php-devel

http://www.xdebug.org 下載xdebug-2.1.1.tar.gz

tar zxvf xdebug-2.1.1.tar.gz
cd xdebug-2.1.1
./configure --prefix=/usr/xdebug-2.1.1
在 /etc/php.ini中添加
[Xdebug]
zend_extension ="/usr/local/php5/xdebug/xdebug.so"
xdebug.profiler_enable=on
xdebug.trace_output_dir="/usr/local/php5/xdebug/"
xdebug.profiler_output_dir="/usr/local/php5/xdebug/"
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_host=localhostxdebug.remote_port=9999

Copyright © Linux教程網 All Rights Reserved