Missing local variables debugging php

Bug #545502 reported by cmanon
90
This bug affects 17 people
Affects Status Importance Assigned to Milestone
xdebug (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I'm testing ubuntu 10.04 beta xdebug package (version 2.0.5) with php5 (5.3.1) and there's a known bug with these packages combination and local variables appear as uninitialized (more information about this xdebug bug http://bugs.xdebug.org/view.php?id=467) such bug is fixed in xdebug beta version (2.1).

Tags: patch php5 xdebug
Revision history for this message
Peter Kreußel (privat-peter-kreussel) wrote :

Xdebug 2.1.0 rc1 has been available since 2010-04-06. I compiled it. It fixes the issue. So far, I've encountered no problem.
I suggest there should be an update to the Ubuntu Xdebug-package as soon as Xdebug 2.1.0 reaches stable. Xdebug's kind of vital for php-developers and in the current state is unusable.

Revision history for this message
Justin Ellison (justin-techadvise) wrote :

I can verify the exact same circumstances as Peter. No local variables until I built xdebug 2.1.0RC1 from source, then all is good.

Revision history for this message
Kevin Rogers (kevin-rogers) wrote :

I can also verify the same problem, but I have had to revert to PHP 5.2 from Karmic as in addition to the xdebug issues our application will not run in PHP 5.3

Revision history for this message
Peter Kreußel (privat-peter-kreussel) wrote :

I must take back my statement "So far no problems with Xdebug 2.1.0rc1" made above. I have by now seen several cases of Apache growing beyond my 12 G RAM. Netbeans ends the debug session with a "debug socket exception" quite frequently. Hope to get clearer about what is happening and report upstream.

Revision history for this message
Peter Kreußel (privat-peter-kreussel) wrote :

It seems that my problems where caused by the combination with Xcache. See http://bugs.xdebug.org/view.php?id=564
After substituting XCache with APC (unfortunately I need a Cache even for testing), I experience no more problems. Well, sorry, not 100% certain, but maybe the hint helps some.

Revision history for this message
DjW (8-launchpaddotnet-istillseeglaciers-com) wrote :

For a stock Ubuntu 10.04 LTS installation I am getting similar behavior to the above complaints. This is a minimal install with just apache 2 , php5.3 running as mod_php, and xdebug

Revision history for this message
DjW (8-launchpaddotnet-istillseeglaciers-com) wrote :

As a temporary solution:
sudo apt-get install php4-dev php-pear

Then go to this page http://xdebug.org/find-binary.php which should ultimately lead to compiling the latest version ( stable or RC ).

For my project, xdebug remote debugging works as expected.

Revision history for this message
DjW (8-launchpaddotnet-istillseeglaciers-com) wrote :

NOTE! it should be
sudo apt-get install php5-dev php-pear

and not php4-dev

Revision history for this message
Florian Hackenberger (f-hackenberger) wrote :

I recompiled the xdebug debian package and got it working without any problems. I had to set the following in /etc/php5/apache2/conf.d/xdebug.ini and restart apache to make local variable display work in eclipse.

xdebug.remote_enable=On
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000

Revision history for this message
Florian Hackenberger (f-hackenberger) wrote :
Revision history for this message
Florian Hackenberger (f-hackenberger) wrote :
tags: added: patch
Revision history for this message
Martin Meredith (mez) wrote :

As a rebuild seems to fix, can this be given back to buildds for a rebuild/SRU?

Revision history for this message
Manuel Vazquez Acosta (mva-led) wrote :

XDebug 2.1.0 is released. Has anyone build a .deb for it?

Revision history for this message
Jonathan Riddell (jr) wrote :

Closing bug, seems to be sorted, 2.1.0 is in maverick, not sure why ubuntu-archive is subscribed

Changed in xdebug (Ubuntu):
status: New → Fix Released
Revision history for this message
Yorirou (yorirou) wrote :

And what about the lucid users (since it is LTS)?

Revision history for this message
Zbigniew (rtd5rtd) wrote :

Hello,

I got the same problem on windows7. No local variables in eclipse(galileo). I'm using Php ver. 5.3.1 and php_xdebug-2.1.0-5.3-vc6.dll on Windows7.
xdebug configured as it should be and php.exe -m shows that it's loaded - phpinfo() also shows the version and configuration of xdebug.

I can stop at break points, navigate inside/out/forward/jump to etc... I can see the primitive variable ( int , string ) values if I mouse over the code/editor, But I can't see any variables in variables/breakpoint view.

If I mouse over the "object of some class" then I can't see shit neither in editor mouse-overed ballon nor in variables view.

please Help or tell me if you got the same problem.

/pozdr

Revision history for this message
David Dean (dave-dean) wrote :

Will there be an updated binary for Lucid?

I'm happy to make one / provide patches / whatever technically needs to be done to fix this in Lucid, but there's no way to do that from here?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.