debugger doesn't show values inside a function [message #506338] |
Wed, 06 January 2010 20:53  |
Eclipse User |
|
|
|
Dear all,
I'm new in Eclipse environment and I'm learning using Eclipse PDT with Xdebug. I have a problem that puzzles me. Looks very simple but I cannot figure it out.
Suppose I have this code:
function sum($a,$b) {
$c=1;
return $a+$b+$c;
}
$result=sum(1,2);
And I want the debugger to show $a, $b, and $c. When I step into sum function, instead of showing the variable values, "variables view" says that $a, $b, and $c are uninitialized.
Why is that doing that? How can I make it display the values?
Regards,
Joe
|
|
|
Re: debugger doesn't show values inside a function [message #506376 is a reply to message #506338] |
Thu, 07 January 2010 05:42   |
Eclipse User |
|
|
|
Originally posted by: dkel50.hotremovemail.com
Are you using php 5.3 ? There appears to be a bug on the version of
xdebug for php 5.3 that causes this. The xdebug author is aware of this
but I don't know when the next official build of xdebug is going to be made.
you could check www.xdebug.org for more info about xdebug
Dave Kelsey
On 07/01/10 01:54, soebagio@gmail.com wrote:
> Dear all,
> I'm new in Eclipse environment and I'm learning using Eclipse PDT with
> Xdebug. I have a problem that puzzles me. Looks very simple but I cannot
> figure it out.
> Suppose I have this code:
>
> function sum($a,$b) {
> $c=1;
> return $a+$b+$c;
> }
> $result=sum(1,2);
>
> And I want the debugger to show $a, $b, and $c. When I step into sum
> function, instead of showing the variable values, "variables view" says
> that $a, $b, and $c are uninitialized.
> Why is that doing that? How can I make it display the values?
>
> Regards,
> Joe
>
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03163 seconds