Ubuntu下netbeans-xdebug配置

本文档详细介绍了如何在Ubuntu操作系统中配置NetBeans集成开发环境与Xdebug进行PHP调试。首先,你可以访问http://xdebug.org/wizard.php进行配置检查。如果在执行'./configure'步骤时遇到错误,作者分享了其遇到的问题和解决过程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1. Copy你的所有的phpinfo()信息到这个网站中间的空白页处:

http://xdebug.org/wizard.php


2.得到分析结果,如:
Tailored Installation Instructions
Summary
Xdebug installed: no
Server API: Apache 2.0 Handler
Windows: no
Zend Server: no
PHP Version: 5.5.9-1
Zend API nr: 220121212
PHP API nr: 20121212
Debug Build: no
Thread Safe Build: no
Configuration File Path: /etc/php5/apache2
Configuration File: /etc/php5/apache2/php.ini
Extensions directory: /usr/lib/php5/20121212
Instructions

Download xdebug-2.2.6.tgz
Unpack the downloaded file with tar -xvzf xdebug-2.2.6.tgz
Run: cd xdebug-2.2.6
Run: phpize (See the FAQ if you don't have phpize.

As part of its output it should show:

Configuring for:
...
Zend Module Api No:      20121212
Zend Extension Api No:   220121212
If it does not, you are using the wrong phpize. Please follow this FAQ entry and skip the next step.

Run: ./configure
Run: make
Run: cp modules/xdebug.so /usr/lib/php5/20121212
Edit /etc/php5/apache2/php.ini and add the line
zend_extension = /usr/lib/php5/20121212/xdebug.so
Restart the webserver

If you like Xdebug, and thinks it saves you time and money, please have a look at the donation page.


3.按照上面的方法一步一步做就可以了。

我的情况是做到./configure这一步时出现错误提示:

sujata@sujata:~/Downloads/xdebug-2.2.6$ ./configure
bash: ./configure: No such file or directory
搜索网上,有的建议chmod -R 0755 x-debug,但我试过不行,试了一下chmod -R 777 x-debug,问题解决。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值