Xdebug与Netbeans 8.0和xampp 1.8.3

时间:2014-04-25 13:55:25

标签: php windows netbeans xampp xdebug

我通过xdebug.org网站(http://xdebug.org/wizard.php)的向导安装了最新版本的Xdebug。 Xdebug正在根据phpinfo()工作。浏览器中的HMTL输出(Firefox 28)显示了xdebug代码。但Xdegub没有与Netbeans沟通。在Netbeans中比较消息"等待连接xampp netbeans-xdebug"。我不明白问题出在哪里。

我使用以下软件:

Windows 8.1
Netbeans IDE 8.0
XAMPP Version 1.8.3
Xdebug 2.2.4

这是我的php.ini

的配置
[XDebug]
zend_extension = C:\xampp\php\ext\php_xdebug-2.2.4-5.5-vc11.dll
xdebug.remote_handler = "dbgp"
xdebug.remote_host = 127.0.0.1
xdebug.remote_port=9000
xdebug.remote_enable = 1
;xdebug.profiler_append = 0
;xdebug.profiler_enable = 1
;xdebug.profiler_enable_trigger = 1
;xdebug.profiler_output_dir = "C:\xampp\tmp"
;xdebug.profiler_output_name = "cachegrind.out.%t-%s"
;xdebug.trace_output_dir = "C:\xampp\tmp"

这是Netbeans

Debbuger Port: 9000
Session ID: netbeans-xdebug
http://oi57.tinypic.com/29gbqrk.jpg

请帮助我!!

1 个答案:

答案 0 :(得分:0)

它不适用于php.ini中的localhost。

试试这个(使用真正的网络IP地址):

;xdebug.remote_host = "127.0.0.1"
xdebug.remote_host = "192.168.1.106"
相关问题