在eclipse PDT中调试期间未显示的值

时间:2021-10-05 11:38:51

I am trying to debug this simplepie.inc (called from index.php )which is dumping me with error during parsing one of the feed.

我正在尝试调试这个simplepie.inc(从index.php调用),它在解析其中一个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.

单步执行$ utf8_data ='UTF-8';我硬编码进行测试,变量值保持 <未初始化> ,如下面的屏幕截图所示。

Why is that so?

为什么会这样?

Variables and values are showing up nicely if I am stepping through the debug in index.php thou.

如果我在index.php中逐步调试,变量和值会很好地显示出来。

alt text http://a.imageshack.us/img713/486/14jul10105825pm.jpg

alt text http://a.imageshack.us/img713/486/14jul10105825pm.jpg

3 个解决方案

#1


3  

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.

XDebug的2.0.x分支中存在一个PHP 5.3的错误,它可以防止局部变量可见。我建议更新/构建SVN的最新版本,或使用最新的2.1.x版本,即使处于RC / Beta状态。

More information available here: http://www.eclipse.org/forums/index.php?t=tree&th=158396

更多信息请访问:http://www.eclipse.org/forums/index.php?t = tree&th = 158396

#2


0  

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.

这个问题已经困扰了我差不多一年了。实际上我们必须使用ubuntu设置虚拟机,因为我们没有让xdebug在Windows上工作。

I just downloaded XAMPP 1.7.7 from www.apachefriends.org and it seams that this bug has been fixed now.

我刚从www.apachefriends.org下载了XAMPP 1.7.7,现在已经修复了这个bug。

#3


0  

ActiveState provides precompiled versions of Xdebug for most operating systems. Package can be downloaded from this page;

ActiveState为大多数操作系统提供Xdebug的预编译版本。包可以从这个页面下载;

http://code.activestate.com/komodo/remotedebugging/

Look for "PHP Remote Debugging Client" and download for your OS.

寻找“PHP远程调试客户端”并下载适用于您的操作系统。

If you choose this option, take the xdebug.so from the appropriate PHP version directory and use it.

如果选择此选项,请从相应的PHP版本目录中获取xdebug.so并使用它。

If you're updating a XAMMP for Mac install, it's in the XAMMP folder.

如果您要更新XAMMP for Mac安装,则它位于XAMMP文件夹中。

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

#1


3  

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.

XDebug的2.0.x分支中存在一个PHP 5.3的错误,它可以防止局部变量可见。我建议更新/构建SVN的最新版本,或使用最新的2.1.x版本,即使处于RC / Beta状态。

More information available here: http://www.eclipse.org/forums/index.php?t=tree&th=158396

更多信息请访问:http://www.eclipse.org/forums/index.php?t = tree&th = 158396

#2


0  

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.

这个问题已经困扰了我差不多一年了。实际上我们必须使用ubuntu设置虚拟机,因为我们没有让xdebug在Windows上工作。

I just downloaded XAMPP 1.7.7 from www.apachefriends.org and it seams that this bug has been fixed now.

我刚从www.apachefriends.org下载了XAMPP 1.7.7,现在已经修复了这个bug。

#3


0  

ActiveState provides precompiled versions of Xdebug for most operating systems. Package can be downloaded from this page;

ActiveState为大多数操作系统提供Xdebug的预编译版本。包可以从这个页面下载;

http://code.activestate.com/komodo/remotedebugging/

Look for "PHP Remote Debugging Client" and download for your OS.

寻找“PHP远程调试客户端”并下载适用于您的操作系统。

If you choose this option, take the xdebug.so from the appropriate PHP version directory and use it.

如果选择此选项,请从相应的PHP版本目录中获取xdebug.so并使用它。

If you're updating a XAMMP for Mac install, it's in the XAMMP folder.

如果您要更新XAMMP for Mac安装,则它位于XAMMP文件夹中。

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