xdebug 和 WAMP - 仍在等待连接


xdebug and WAMP - still Waiting for connection

我尝试了非常非常多的解决方案来使用 WAMP 安装 xdebug,但我仍然有通信"等待连接"。

[xdebug]
zend_extension_ts="C:/wamp/bin/php/php5.3.8/ext/php_xdebug-2.2.0-5.3-vc9-nts-86_64.dll"
xdebug.profiler_output_dir = "c:/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=127.0.0.1
xdebug.remote_port=9000
xdebug.idekey=netbeans-xdebug
xdebug.remote_log="c:/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
xdebug.remote_autostart=1

我在PHP.ini(/PHP和/Apache)中都有这个。

但我可以在 WAMP 中启用扩展 php_xdebug-2.2.0-5.3-VC9-NTS-86_64.dll。如果我检查这个,那么 WAMP 被重置并且仍然未选中。

我有Windows 7(64x)。

Sometimes i have error:
Failed loading ”C:/wamp/bin/php/php5.3.8/ext/php_xdebug-2.2.0-5.3-vc9-nts-x86_64.dll”
PHP Warning:  PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.3.8/ext/php_phar.dll' - .'r'n in Unknown on line 0
<br />
<b>Warning</b>:  PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.3.8/ext/php_phar.dll'
 in <b>Unknown</b> on line <b>0</b><br />
PHP Warning:  PHP Startup: Unable to load dynamic library 'ext/php_xsl.dll' in Unknown on line 0
<br />
PHP Warning:  Xdebug MUST be loaded as a Zend extension in Unknown on line 0
<br />
<b>Warning</b>:  Xdebug MUST be loaded as a Zend extension in <b>Unknown</b> on line <b>0</b><br />

但很少。

我该如何用这个制作?请帮忙。仍在"等待连接"

几个问题。您正在使用 PHP 5.3 并加载扩展

zend_extension_ts="C:/wamp/bin/php/php5.3.8/ext/php_xdebug-2.2.0-5.3-vc9-nts-86_64.dll"

这一行在两个地方是错误的:

  • 从 PHP 5.3 开始,zend_extension_ts不再存在,您必须使用zend_extension=
  • 您使用 nts 版本,而..._ts行表示您使用 PHP 的 TS 版本

我建议您确保没有 zend_extension*= 和 extension= 行提及 Xdebug 的任何内容,然后参考向导。