XDebug的不XAMPP工作 [英] XDebug not working with xampp

查看:110
本文介绍了XDebug的不XAMPP工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用(或试图反正)使用带有XAMPP 1.7.2捆绑的XDebug。它捆绑了Apache的2.2.12,PHP 5.3.0,2.0.5了XDebug和Zend(不知道的版本)

I'm using (or trying to anyway) use the bundled XDebug with XAMPP 1.7.2. It comes bundled with Apache 2.2.12, PHP 5.3.0, XDebug 2.0.5 and Zend (not sure on version)

这是一个完全新的安装XAMPP,我已经加入到php.ini文件(在XAMPP / PHP / php.ini中)的唯一的事情是:

This is a totally fresh install of XAMPP, the only thing I've added to php.ini (at xampp/php/php.ini) is:

zend_extension_ts = "C:\xampp\php\extensions\php_xdebug.dll"
[xdebug]
xdebug.auto_trace = 1
xdebug.collect_includes = 1
xdebug.collect_params = 1
xdebug.collect_return = 1
xdebug.default_enable = 1
xdebug.extended_info = 1
xdebug.show_local_vars = 0
xdebug.show_mem_delta = 1
xdebug.trace_format = 1
xdebug.trace_options = 0
xdebug.trace_output_dir ="C:\xampp\tmp"

xdebug.remote_enable=1
xdebug.remote_mode="req"
xdebug.remote_host=127.0.0.1
xdebug.remote_port=17869
xdebug.idekey=<idekey>

xdebug.remote_handler="gdb"
xdebug.auto_profile = 1
xdebug.auto_profile_mode = 2
xdebug.output_dir = "C:\xampp\tmp"

xdebug.dump.SERVER = REMOTE_ADDR,REQUEST_METHOD

(这只是我已经尝试过许多不同的configs之一)

(this is only one of many different configs I've tried)

但是尽量为我可能,只是XDebug的将无法连接到任何东西。我尝试Netbeans和Debugclient.exe(在XAMPP / PHP / debugclient.exe)。他们都只是坐着等待。

But try as I might, XDebug just will not connect to anything. I've tried Netbeans and Debugclient.exe (in xampp/php/debugclient.exe). They both just sit and wait forever.

我怎么XDebug的工作?

How do I get XDebug to work?

推荐答案

Xdebug的2.0不应与PHP 5.3的工作。
Xdebug的V2.1提供了PHP 5.3的支持。否则,我会摆脱的XDebug INI配置除外:

Xdebug v2.0 shouldn't work with PHP 5.3. Xdebug v2.1 provides PHP 5.3 support. Otherwise I would get rid of the xdebug ini config except:

zend_extension_ts = "C:\xampp\php\extensions\php_xdebug.dll"
xdebug.remote_enable   = On
xdebug.remote_host     = "localhost"
xdebug.remote_port     = 9000
xdebug.remote_handler  = "dbgp"

以此作为你的测试,一旦这个工程再增加额外的CONFIGS。确保你注释掉其他Zend的东西。

use this as your test and once this works then add additional configs. Make sure you comment out other zend stuff.

这篇关于XDebug的不XAMPP工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆