Skip to main content



      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] Tue, 24 November 2009 23:56 Go to previous message
Eclipse UserFriend
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 02:55] by 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: Tue Apr 01 21:09:39 EDT 2025

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

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

Back to the top