简体   繁体   English

xdebug和WAMP-仍在等待连接

[英]xdebug and WAMP - still Waiting for connection

I tried very, very much solutions for install xdebug with WAMP, but i have still communicat "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

i have this in both php.ini (/php and /apache). 我在php.ini(/ php和/ apache)中都有这个。

but i can enable extension php_xdebug-2.2.0-5.3-vc9-nts-86_64.dll in WAMP. 但我可以在WAMP中启用扩展名php_xdebug-2.2.0-5.3-vc9-nts-86_64.dll。 If i check this, then WAMP is reset and still is uncheck. 如果我选中此选项,则WAMP会重置,并且仍处于取消选中状态。

I have Windows 7 (64x). 我有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 />

but very rarely. 但很少。

How can i make with this? 我该怎么做? Please help. 请帮忙。 Still "Waiting for connection" 仍然是“等待连接”

A few issues. 一些问题。 You're using PHP 5.3 and loading the extension with: 您正在使用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" zend_extension_ts =“ C:/wamp/bin/php/php5.3.8/ext/php_xdebug-2.2.0-5.3-vc9-nts-86_64.dll”

This line is wrong in two places: 该行在两个地方是错误的:

  • Since PHP 5.3, zend_extension_ts no longer exists and you have to use zend_extension= 从PHP 5.3开始, zend_extension_ts不再存在,您必须使用zend_extension=
  • You use the nts version while the ..._ts line indicates you use the TS version of PHP 您使用nts版本,而..._ ts行表示您使用PHP的TS版本

I would suggest you make sure you have no zend_extension*= and extension= lines mentioning anything of Xdebug, and then refer to the wizard . 我建议您确保没有提到Xdebug的zend_extension * =和extension =行,然后参考向导

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM