2013-07-09 67 views
0

我正在尝试使用xampp 1.8.1配置Xdebug。我试图用phpinfo()结果使用向导,但它似乎不起作用。 “下载”字段为空。在phpinfo()中,所有列出的扩展构建都是VC9,看起来像我需要线程安全。我已经尝试了32位和64位版本的VC9_TS版本,但似乎没有任何工作。我正在使用phpinfo上显示的php.ini)()。我已经检查过Apache和PHP错误日志,但没有相关的条目。无法使用xampp获得xdebug在Win 7上的工作1.8.1

XDebug的向导:

Summary 
Xdebug installed: no 
Server API: Apache 2.4 Handler Apache Lounge 
Windows: yes - Compiler: MS VC9 - Architecture: x86 
Zend Server: no 
PHP Version: 5.4.7 
Zend API nr: 220100525 
PHP API nr: 20100525 
Debug Build: no 
Thread Safe Build: yes 
Configuration File Path: C:\windows 
Configuration File: C:\xampp\php\php.ini 
Extensions directory: C:\xampp\php\ext 

说明

Download 
Move the downloaded file to C:\xampp\php\ext 
Edit C:\xampp\php\php.ini and add the line 
zend_extension = C:\xampp\php\ext\ 
Restart the webserver 

在php.ini中,我有以下:

[XDebug] 
zend_extension="c:\xampp\php\ext\php_xdebug.dll" 
xdebug.remote_enable=1 
xdebug.remote_port="9000" 
xdebug.profiler_enable=1 
xdebug.profiler_output_dir="c:\xampp\tmp>" 

预先感谢任何帮助!

+0

你可以添加你用一个zip文件粘贴到向导中的phpinfo(),然后将它附加到http://bugs.xdebug.org/view.php?id=957? – Derick

回答

1

你是否纠正了这个问题?如果不是请试试这个。 我有同样的情况是你的,我通过

1)

zend_extension = "c:\xampp\php\ext\php_xdebug-2.2.3-5.4-vc9.dll" 
    xdebug.remote_autostart=on 
    xdebug.remote_enable=on 
    xdebug.remote_enable=1 
    xdebug.remote_handler="dbgp" 
    ;xdebug.remote_host="localhost:81" 
    xdebug.remote_host=192.168.1.5 
    ;xdebug.remote_connect_back=1 
    xdebug.remote_port=9000 
    xdebug.remote_mode=req 
    xdebug.idekey="netbeans-xdebug" 

这里我使用的是最新的DLL,但需要php.ini文件内容有结果只测试等后更改变化。

xdebug.remote_host = 192.168.1.5 - 这是我系统的IPv4地址,我更改为这个,因为我无法使用本地主机和127.0.0.1进行调试。

在NetBeans IDE中,打开Tools-> Options-> PHP-> Debugging。调试端口和会话ID的值应与港口和在php.ini idekey指定

现在保存的php.ini,重启Apache现在尝试调试

感谢 约翰逊

相关问题