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

+1


source to share


4 answers


I found a link up to several months old and got a very nice tutorial about xdebug and netbeans.

hope this link is helpful for you as well, just read the article and follow the steps to get to work.



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

+1


source


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.

+2


source


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
      

Run codeHide result


+2


source


In order to connect to netbeans you will need to configure the options "Tools"> "Options"> "PHP"> "Debugger" and in your php.ini above you need to change:

xdebug.idekey=xdebug

      

to

xdebug.idekey="netbeans-xdebug"

      

hope it helps

0


source







All Articles