1

我正在努力让 xdebug 与我的 Apache 2.x、PHP 5.3 和我的 Netbeans 6.9 一起工作:

我的意思是phpinfo中的一切看起来都很好,除了:

local value         local value     master value
xdebug.idekey   MYTHINKPAD$ netbeans-xdebug

MYTHINKPAD 是我的本地 (Windows 7x64) 机器的名称。我没有最微弱的线索,主值以这种方式被覆盖。在 http.conf 和 .htaccess 中肯定没有 php_value,在 php.ini 中也没有任何异常:

xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.idekey="netbeans-xdebug"

更令人惊讶的是,如果我将这个添加到 httpd.conf 中,重新启动并查看 phpinfo():

This has an effect (no surprise) and shows in phpinfo():
php_value iconv.output_encoding "UTF-8"
This has an effect (no surprise) and shows in phpinfo():
php_value xdebug.max_nesting_level 111
Again, sigh, my machine name 'wins'...
php_value xdebug.idekey foobardoo

嗯?有人可以填写我,为什么我的机器名称如此有弹性?

在此期间,什么AllowOverride可以让我在 .htaccess 文件中使用 php_value 语句?(是的,我用谷歌搜索)。还是根本不可能?

4

2 回答 2

1

我对原因一无所知。但解决方法是定义一个全局环境变量:

DBGP_IDEKEY     netbeans-xdebug(orwhatever)
于 2011-10-12T15:07:32.723 回答
1

这似乎是在 2.1.4 / 2.2.0 中修复的 xdebug 错误

http://bugs.xdebug.org/bug_view_page.php?bug_id=00000758

于 2012-08-17T02:47:05.040 回答