问题
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:
- Click the wamp icon and choose PHP->php.ini.
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 = 9000Restart all services.
- 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