Netbeans not connecting with xdebug on Wamp : “showing waiting for connection”

冷暖自知 提交于 2019-12-06 15:41:32

i have found a link before few months, and got a very nice tutorial about the xdebug and netbeans,

hope this link also helpful for you also, just read the article and do the steps to get in work..

http://devzone.zend.com/1120/introducing-xdebug/

Boris Roscin

Just decided to post my successful struggle with the Xdebug. All I've done is made this changes to php.ini:

zend_extension = "D:/wamp/bin/php/php5.3.13/zend_ext/php_xdebug-2.2.0-5.3-vc9.dll"

xdebug.remote_enable = 1

xdebug.idekey="netbeans-xdebug"

xdebug.profiler_enable = 1

I hope it helps someone.

For Wamp Server, make sure you are making changes in right php.ini. There are 2 files -

  1. \wamp_server\bin\php\php5.5.12\php.ini
  2. \wamp_server\bin\apache\apache2.4.9\bin\php.ini

I was making changes to the first file. Then I checked php.ini file being used by clicking wampserver icon -> PHP -> php.ini (The location of this file was inside apache directory & not php as I was assuming)

Altering this second file did the trick for me.

Edit php.ini files to contain this code:

zend_extension=[path to xdebug .so/.dll]
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000

To connect with netbeans you will have need to configure in the Tools>Options>PHP>Debugger settings and in your php.ini above you need to change:

xdebug.idekey=xdebug

to

xdebug.idekey="netbeans-xdebug"

hope that helps

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