Netbeans not connecting to xdebug on Wamp: "showing, waiting for a connection"
Below is my config in bin\php\php5.3.9\php.ini
andbin\apache\Apache2.2.21\bin
[xdebug]
zend_extension = "D:/wamp/php/ext/php_xdebug-2.2.1-5.2-vc9-nts.dll"
xdebug.profiler_output_dir = "D:/wamp/tmp/xdebug"
xdebug.profiler_output_name = "cachegrind.out.%p"
xdebug.profiler_enable = 0
xdebug.profiler_append=0
xdebug.extended_info=1
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.idekey=xdebug
xdebug.remote_log="D:/wamp/tmp/xdebug/xdebug_remot.log"
xdebug.show_exception_trace=0
xdebug.show_local_vars=9
xdebug.show_mem_delta=0
xdebug.trace_format=0
while i have php_xdebug-2.2.1-5.2-vc9-nts.dll
in wamp/php/ext/
and in\wamp\bin\php\php5.3.9\zend_ext
But still it does not show information about xdebug in phpinfo (), nor is it related to xdebug.
Shows "waiting for connection" .
Please help me how can I accomplish this configuration
source to share
Just decided to post my successful Xdebug wrestling. Everything I did was entered into 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 this helps someone.
source to share
For Wamp Server, make sure you are making changes to the correct php.ini. There are 2 files -
- \ wamp_server \ Bin \ PHP \ php5.5.12 \ php.ini
- \ wamp_server \ Bin \ Apache \ apache2.4.9 \ Bin \ php.ini
I was making changes to the first file. Then I checked the php.ini file by clicking the wampserver icon -> PHP -> php.ini (the location of this file was inside the apache directory, not php as I assumed)
Changing this second file did the trick for me.
Modify the php.ini files containing 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
source to share