Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » local variables shown as uninitialized while debugging
local variables shown as uninitialized while debugging [message #551407] Fri, 06 August 2010 10:06 Go to next message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1389
Registered: July 2009
Senior Member
Hi

anyone experiencing this problem? when debugging (I'm using xdebug) I
can perfectly see global and fields of $this, but all the local
variables are always shown as uninitialized...

thanks in advance
Lore

--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net
Re: local variables shown as uninitialized while debugging [message #551427 is a reply to message #551407] Fri, 06 August 2010 11:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dkel50.hotremovemail.com

Are you using php 5.3 and xdebug 2.05 ? if you are then this is a known
bug in xdebug. try xdebug 2.1

Dave

On 06/08/2010 11:06, Lorenzo Bettini wrote:
> Hi
>
> anyone experiencing this problem? when debugging (I'm using xdebug) I
> can perfectly see global and fields of $this, but all the local
> variables are always shown as uninitialized...
>
> thanks in advance
> Lore
>
Re: local variables shown as uninitialized while debugging [message #551445 is a reply to message #551407] Fri, 06 August 2010 13:19 Go to previous messageGo to next message
Peter Wiseman is currently offline Peter WisemanFriend
Messages: 1
Registered: August 2010
Junior Member
Dave's fix worked for me.

I had XAMPP 1.7.3 installed (PHP5.3.1, XDEBUG 2.06-dev) on Windows.

I found the correct version of XDebug to download from http://www.xdebug.org/find-binary.php which included instructions for where to put the dll, and how to change the php.ini file. For me it was 2.1.0-5.3-vc6.

Stopped and re-started apache, and it now works.

Re: local variables shown as uninitialized while debugging [message #551500 is a reply to message #551427] Fri, 06 August 2010 16:36 Go to previous messageGo to next message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1389
Registered: July 2009
Senior Member
On 08/06/2010 01:35 PM, dave kelsey wrote:
> Are you using php 5.3 and xdebug 2.05 ? if you are then this is a known
> bug in xdebug. try xdebug 2.1
>
> Dave
>
> On 06/08/2010 11:06, Lorenzo Bettini wrote:
>> Hi
>>
>> anyone experiencing this problem? when debugging (I'm using xdebug) I
>> can perfectly see global and fields of $this, but all the local
>> variables are always shown as uninitialized...
>>
>> thanks in advance
>> Lore
>>
>

I'm using xdebug 20090626+lfs in ubuntu, I'll try the version you suggest!

many thanks
Lorenzo

--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net
Re: local variables shown as uninitialized while debugging [message #553404 is a reply to message #551445] Tue, 17 August 2010 12:45 Go to previous message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1389
Registered: July 2009
Senior Member
On 08/06/2010 03:19 PM, Peter Wiseman wrote:
> Dave's fix worked for me.
>
> I had XAMPP 1.7.3 installed (PHP5.3.1, XDEBUG 2.06-dev) on Windows.
>
> I found the correct version of XDebug to download from
> http://www.xdebug.org/find-binary.php which included instructions for
> where to put the dll, and how to change the php.ini file. For me it was
> 2.1.0-5.3-vc6.
>
> Stopped and re-started apache, and it now works.

Works for me now (in kubuntu lucid) by downloading the new version and
compiling it.

Thanks Dave and Peter! :)

cheers
Lorenzo

--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net
Previous Topic:PHP Project Syncing
Next Topic:No images in Navigator View
Goto Forum:
  


Current Time: Fri Nov 21 08:58:14 GMT 2014

Powered by FUDForum. Page generated in 0.03485 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software