本来写写有关 php 的小程序一直是用 notepad++ 的,不过看到网上对 NetBeans 这个 IDE 软件评论很好。所以今天我也下来装着用用。去 NetBeans 官网你可以发现这不只是一个 php 的 IDE 工具,它是可以通过插件来扩展,从而适用于 java,python,c++等 IDE 环境,所以它非常的强大。
首先从 http://netbeans.org/ 下载你所需要的 NetBeans 版本,我下载的只是 php 环境的。
再从 http://www.apachefriends.org/zh_cn/xampp-windows.html 下载完整版的 xampp(因为lite版可能没有 xdebug.dll)。
接着分别安装好他们。然后打开 xampp\php\php.ini 文件修改一些参数。
xdebug.profiler_enable = 0 改为 xdebug.profiler_enable = 1
;xdebug.remote_enable = 0 改为 xdebug.remote_enable = 1 (注意去掉前面的分号)
;xdebug.remote_handler = “dbgp” (只要去掉前面的分号)
;xdebug.remote_host = “localhost”(只要去掉前面的分号)
;xdebug.remote_port = 9000(只要去掉前面的分号)
这样就可以使用 xdebug 调试 php 程序了。


