how to use NetBeans integration with WAMP 2.2.21?

十年热恋 提交于 2019-12-24 23:28:56

问题


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.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.

any help are Appreciated.


回答1:


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. 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

  3. Restart all services.

  4. Start debugging.

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



来源:https://stackoverflow.com/questions/10596438/how-to-use-netbeans-integration-with-wamp-2-2-21

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!