首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 操作系统 > UNIXLINUX >

linux xdebug装配

2012-10-07 
linux xdebug安装linux下解压xdebug包。1、进入xdebug,在这个目录下先运行php目录下面的bin/phpize;2、在运行

linux xdebug安装
linux下解压xdebug包。
1、进入xdebug,在这个目录下先运行php目录下面的bin/phpize;

2、在运行
./configure \
--enable-xdebug\
--with-php-config=/你php的bin路径/php-config;

3、make
好了,结束了。这是时候会在xdebug的目录下生成 目录modules,目录下有xdebug.so文件,把xdebug.so复制到你想放的目录。

4、在php的配置文件后面加上
zend_extension = "/路径/xdebug.so"
也不一定是zend_extension,也可能是zend_extension_ts,或者zend_extension_debug。

5、重启下,看phpinfo();(或者 命令行里 ./php -m |grep debug)
有结果就成了.


在php.ini 里加入

extension=xdebug.so
zend_extension="/usr/lib/php/modules/xdebug.so"
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_port=9000
xdebug.remote_host=127.0.0.1
xdebug.remote_log=/var/log/xdebug.log

热点排行