1. 先在环境下编写一个phpinfo函数,打出phpinfo信息。
 
2. 复制所有的phpinfo信息,粘贴到:http://xdebug.org/wizard.php,从而进行相应的环境分析。
 
3. 分析后的结果会给出如下信息:
    netbeans下xdebug安装及配置
 
4. 按照操作步骤进行操作。
 
5. 并给php.ini加上如下配置项,且将相应的off项改为on
    output_buffering = off
    xdebug.remote_handler = dbgp
    xdebug.remote_host = localhost
    xdebug.remote_port = 9001
 
6. 打开netbeans,选择:工具->选项
 
7. 选择:PHP->调试,如下图
    netbeans下xdebug安装及配置
 
8. 确定后完成。

转载于:https://www.cnblogs.com/lfire/archive/2012/10/11/2719693.html

相关文章: