NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
How to display the private variable name in a Watch?


Joined: 30 Jul 2004
Posts: 3
Reply with quote
I'm using PHP5 classes and declare private variable as:

Quote:
class MyClass
{
private $myVar=0;
public function __construct() {
// do something
}
public function foo() {
// do something
}
}


But during a debug session the name of the private variable myVar is not shown when an object of MyClass is displayed at a Watch. Is there a way/setting to accomplish this and leaving the code as it is?
View user's profileFind all posts by ShakySend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
It's a bug in dbg-2.16.10 and before. Fix will be available with 2.16.11 (or .12).
View user's profileFind all posts by dmitriSend private messageVisit poster's website
How to display the private variable name in a Watch?
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic