xdebug:不要删除机器名称 xdebug.idekey
我正在努力让 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 中没有 php_value,也没有 .htaccess,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 语句? (是的,我用谷歌搜索)。或者根本不可能?
I am fighting to get xdebug working with my Apache 2.x, PHP 5.3 and my Netbeans 6.9:
I got to the point that everything looks good in phpinfo, except:
local value local value master value
xdebug.idekey MYTHINKPAD$ netbeans-xdebug
MYTHINKPAD is the name of my local (Windows 7x64) machine.
I don't have the faintest clue, where the master value gets overriden in such way.
Certainly no php_value in http.conf nor .htaccess, nor anything unusual in php.ini:
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.idekey="netbeans-xdebug"
What's even more suprising, if I add this to httpd.conf, restart and look at 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
Huh? Can somebody fill me in, why my machine name is so resilient?
While at it, what AllowOverride
would allow me to use php_value statements in .htaccess files? (yes, I googled). Or not possible at all?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我对其中的原因一无所知。
但解决方法是定义一个全局环境变量:
I don't know nothing about the reasons.
But a fix is to define a global environment variable:
这似乎是一个 xdebug 错误,已在 2.1.4 / 2.2.0 中修复
http:// /bugs.xdebug.org/bug_view_page.php?bug_id=00000758
This appears to be an xdebug bug that was fixed in 2.1.4 / 2.2.0
http://bugs.xdebug.org/bug_view_page.php?bug_id=00000758