Netbeans未与Wamp上的xdebug连接:“显示等待连接" [英] Netbeans not connecting with xdebug on Wamp : "showing waiting for connection"

查看:279
本文介绍了Netbeans未与Wamp上的xdebug连接:“显示等待连接"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下是我在bin\php\php5.3.9\php.inibin\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

wamp/php/ext/\wamp\bin\php\php5.3.9\zend_ext

但是它仍然没有在phpinfo()中显示xdebug信息,也没有与xdebug连接.

But still its not showing the xdebug information in phpinfo() and also not connecting with xdebug.

显示等待连接" 很长时间.

请帮助我如何进行此配置

Please help me how can I do this configuration

推荐答案

对于Wamp Server,请确保您在正确的php.ini中进行了更改.有2个文件-

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

我正在对第一个文件进行更改.然后,我通过单击wampserver图标-> PHP-> php.ini来检查正在使用的php.ini文件(此文件的位置位于apache目录内,而不是我假设的php)

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.

编辑php.ini文件以包含以下代码:

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

这篇关于Netbeans未与Wamp上的xdebug连接:“显示等待连接"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆