如何使用 NetBeans 与 WAMP 2.2.21 的集成? [英] how to use NetBeans integration with WAMP 2.2.21?

查看:51
本文介绍了如何使用 NetBeans 与 WAMP 2.2.21 的集成?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用 NetBeans IDE 7.1.2,但我在设置方面遇到了一些问题.我无法成功运行调试器.我不想使用 Xdebug 我有一个 WAMP 并且它在 eclipse 中工作正常,因为我有一些与 OOP 和表单相关的 eclipse 错误.我决定安装额外的调试器 NetBeans.我在网上阅读了一些教程,但没有帮助我分配.

I try to work with NetBeans IDE 7.1.2 and I have some problem with the setting. I can not successfully run the debugger. I don't want to use to Xdebug I have a WAMP and it works OK with eclipse since I have some error from eclipse related to OOP and form. I decide to install additional debugger the NetBeans. I read some tutorial on the web and it has not helped me allot.

1.我不知道如何在 NetBeans 中定义文件 php.ini .2.我不知道要在php.ini中添加什么行.

1.I Don't know how to define in NetBeans the file php.ini . 2.I Don't know what line to add to php.ini.

感谢任何帮助.

推荐答案

当您全新安装 Netbeans 和 Wamp 时,调试工作真的并不难.您可以这样做:

When you have fresh install of Netbeans and Wamp, it's really not that hard to get debugging working. Here's what you do:

  1. 点击 wamp 图标并选择 PHP->php.ini.
  2. 滚动到文件底部并设置/添加以下设置:

  1. Click the wamp icon and choose PHP->php.ini.
  2. Scroll to the bottom of the file and set/add the following settings:

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

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

重启所有服务.

如果您仍然无法使用调试器,可能是因为防火墙阻止了 netbeans.

If you still can't use the debugger, it could be because the firewall is blocking netbeans.

这篇关于如何使用 NetBeans 与 WAMP 2.2.21 的集成?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆