Netbeans配置Xdebug

1.进入 http://xdebug.org/wizard.php 页面,新建一个php页面,里面输入 echo phpinfo(); 然后在运行的页面,复制页面内容到里面,
这个网站会分析出,当前运行的php版本,是否是线程安全等内容,然后给出一个链接去下载对应的xdebug版本。
 
2.给出的分析的结果和操作步骤,很方便
 
 
3.通过上述步骤,调试代码时,还是显示连接 netbeans-xdebug信息。
 
4.在zend_extension后面加入下面几段代码,可以调试成功。
  xdebug.remote_enable=true
  xdebug.remote_handler=dbgp
  xdebug.remote_host=localhost
  xdebug.remote_port=9000
php.ini修改过的代码如图所示:
原文地址:https://www.cnblogs.com/liminjun88/p/4531212.html