什么是PHP 5.3.27的正确的xdebug DLL?

时间:2013-10-23 20:01:41

标签: php netbeans xdebug

我已经尝试了下面提到的4个不同的xdebug dll,但是当我继续看到“等待连接netbeans-xdebug”的消息时,它们似乎都没有与netbeans一起工作:

php_xdebug-2.0.4-5.3.0-vc6
php_xdebug-2.2.0-5.2-vc9
php_xdebug-2.1.2-5.2-vc6
php_xdebug-2.1.0beta1-5.2-vc6

我的php.ini包含以下内容:

[XDebug]
zend_extension_ts = "C:\Program Files\PHP\ext\php_xdebug-2.0.2-5.3.0.dll"
zend_extension = "C:\Program Files\PHP\ext\php_xdebug-2.0.2-5.3.0.dll"
extension = "C:\Program Files\PHP\ext\php_xdebug-2.0.2-5.3.0.dll"

xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000

1 个答案:

答案 0 :(得分:0)

我解决了这个问题。

首先,我需要删除行

zend_extension_ts = "C:\Program Files\PHP\ext\php_xdebug-2.0.2-5.3.0.dll"
zend_extension = "C:\Program Files\PHP\ext\php_xdebug-2.0.2-5.3.0.dll"
extension = "C:\Program Files\PHP\ext\php_xdebug-2.0.2-5.3.0.dll"

Machavity建议从xdebug网站下载php_xdebug-2.2.3-5.3-vc9.dll。然后我使用以下行更新了php.ini文件

[XDebug]
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000

zend_extension = "C:\Program Files\PHP\ext\php_xdebug-2.2.3-5.3-vc9.dll"`

注意:PHP 5.3不喜欢 zend_extension_ts

我重新启动了Apache,netbeans现在连接到Xdebug。