首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

ubuntu上netbeans配置xdebug

2012-10-29 
ubuntu下netbeans配置xdebugsudo apt-get install php5-dev php5-cli#其中php5-dev为了安装xdebug所以必须

ubuntu下netbeans配置xdebug

sudo apt-get install php5-dev php5-cli
#其中php5-dev为了安装xdebug所以必须安装。
sudo apt-get install php5-xsl
#Xinc需要xsl extension
sudo apt-get install php-pear

sudo pecl install xdebug
#编译成功说明已经安装完成
#如果上面的安装没有执行,那么应该是缺少perl,那么执行 sudo apt-get install perl

#成功,安装完成之后会显示xdebug.so的地址,如:/usr/lib/php5/20090626+lfs/xdebug.so

之后找到两个php.ini文件,其位置可以通过phpinfo()函数输出的Configuration File (php.ini) Path参数来看到
/etc/php5/apache/php.ini和/etc/php5/cli/php.ini 分别在这两个文件中加入
zend_extension=/usr/lib/php5/20090626+lfs/xdebug.so
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp

热点排行