在 eclipse PDT 中调试期间不显示值
我正在尝试调试这个 simplepie.inc (从 index.php 调用),它在解析其中一个提要期间错误地转储我。
单步执行我硬编码的 $utf8_data = 'UTF-8';
行以进行测试后,变量的值仍然是
,如下所示下面的截图。
为什么会这样呢?
如果我在 index.php 中进行调试,变量和值会很好地显示出来。
替代文本 http://a.imageshack.us/img713/486/14jul10105825pm.jpg< /a>
I am trying to debug this simplepie.inc (called from index.php )which is dumping me with error during parsing one of the feed.
After stepping through the line $utf8_data = 'UTF-8';
which I hardcoded in to test things out, the value of the variable remains <Uninitialized>
as shown in the screenshot below.
Why is that so?
Variables and values are showing up nicely if I am stepping through the debug in index.php thou.
alt text http://a.imageshack.us/img713/486/14jul10105825pm.jpg
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
PHP 5.3 的 XDebug 2.0.x 分支中存在一个现有错误,该错误会阻止局部变量可见。我建议更新/构建 SVN 的最新版本,或使用最新的 2.1.x 版本,即使处于 RC/Beta 状态。
更多信息请访问:http://www.eclipse.org /forums/index.php?t=tree&th=158396
There is an existing bug in the 2.0.x branch of XDebug with PHP 5.3 which prevents local variables from being visible. I would recommend updating/building either the latest version from SVN, or using a recent 2.1.x release, even if in RC/Beta status.
More information available here: http://www.eclipse.org/forums/index.php?t=tree&th=158396
这个问题困扰了我快一年了。实际上,我们必须使用 ubuntu 设置虚拟机,因为我们没有让 xdebug 在 Windows 上运行。
我刚刚从 www.apachefriends.org 下载了 XAMPP 1.7.7,看来这个错误现在已经修复了。
This issue has bugged me for almost a year. Actually we had to set up virtual machines with ubuntu because we did not get xdebug to work on windows.
I just downloaded XAMPP 1.7.7 from www.apachefriends.org and it seams that this bug has been fixed now.
ActiveState 为大多数操作系统提供了 Xdebug 的预编译版本。可以从这个页面下载安装包;
http://code.activestate.com/komodo/remotedebugging/
查找“PHP 远程调试”客户端”并下载适合您操作系统的版本。
如果选择此选项,请从相应的 PHP 版本目录中获取 xdebug.so 并使用它。
如果您要更新 Mac 版 XAMMP 安装,它位于 XAMMP 文件夹中。
xamppfiles/lib/php/php-5.3.1/extensions/no-debug-non-zts-20090626/xdebug.so
从这里抓取:
http://kubyshkin.ru/posts/installing-php-xdebug-extension-on-mac-os- x-10-7-lion.html
ActiveState provides precompiled versions of Xdebug for most operating systems. Package can be downloaded from this page;
http://code.activestate.com/komodo/remotedebugging/
Look for "PHP Remote Debugging Client" and download for your OS.
If you choose this option, take the xdebug.so from the appropriate PHP version directory and use it.
If you're updating a XAMMP for Mac install, it's in the XAMMP folder.
xamppfiles/lib/php/php-5.3.1/extensions/no-debug-non-zts-20090626/xdebug.so
Snagged from here:
http://kubyshkin.ru/posts/installing-php-xdebug-extension-on-mac-os-x-10-7-lion.html