Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » eclipse php debugger not showing variable values withing function blocks (PHP debugging: variable values.)
icon5.gif  eclipse php debugger not showing variable values withing function blocks [message #500121] Wed, 25 November 2009 04:56 Go to previous message
aniss55  is currently offline aniss55
Messages: 3
Registered: November 2009
Junior Member
When I am trying to debug a php web-application it's not showing me the value of the argument variables that's passed to the function. The variable appears as <uninitialized>.

Example:
<?php

$a = 2;
echo "a = " . $a . "<br>";
echo "a*a = " . sqr($a);

function sqr($b) {
	$c=$b;
	echo "c=" . $c . "<br>";
	return $c*$c;
}
?>


when the debugger is inside the function block, it's not showing the value of $c or $b. However it's showing the correct value of $a when on the echo statement on Line 4. Please see screenshot below.

Can anyone help on that. Is this a configuration issue? (I am using xDebug with eclipse)

Thanks!!

http://img686.imageshack.us/img686/9208/12570252.jpg

[Updated on: Thu, 26 November 2009 07:55]

Report message to a moderator

 
Read Message icon5.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:AJAX perspective
Next Topic:PHPEclipse installationw woes
Goto Forum:
  


Current Time: Wed Oct 22 23:05:19 GMT 2014

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

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