NetBeans IDE配置调试

时间:2023-03-09 08:19:22
NetBeans IDE配置调试

1.首先需要下载xdebug,在网址中http://www.xdebug.org/download.php可据实际配置环境下载,当然有的Apache安装后已经安装该项,就不必作处理;

2.配置php.ini,如下参数:

zend_extension该节点是放置xdebug路径,路径可根据实际文件放置的位置设置(有的将dll放在ext文件夹中),如下图所示
zend_extension = "d:/wamp/bin/php/php5.3.10/zend_ext/php_xdebug-2.1.2-5.3-vc9.dll"

[xdebug]
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9000

NetBeans IDE配置调试
配置成功后,可通过phpinfo()函数查询到以下界面(有可能据版本不同,略有差异),如下图所示:
NetBeans IDE配置调试
NetBeans IDE配置调试

3.配置NetBeans调试
NetBeans IDE配置调试