[xdebug-general] Debugging Protected Properties from outside the class

From: David Ashwood <david[@]inspiredthinking.co.uk>
Date: Tue, 11 Jan 2005 15:25:14 +0100

Hi,

It appears that Zend Studio 4 (build 1640) - supports debugging of protected
class properties from outside the scope of the class.

The test code I used was (it's just an example eh - I usually have better
naming convention - like Foo ;) ) :

[code]
class ClassOne {
        
        protected $propertyBag;
        
        function MethodOne() {
                $this->propertyBag=array();
                $this->propertyBag[] = "something";
        }
        
}

// Breakpoint on the following line
$a = new ClassOne();
$a->MethodOne();
// At this point - Stick a watch on $a or expand the debug variable $a and
then expand $a->propertyBag
[/code]

Now I thought this was impossible? Does this mean that xDebug will now
support debugging/viewing protected/private properties - or will a new
version of xDebug need to be compiled?

Attached is the output from phpinfo();

Regards,

David

Received on Tue Jan 11 2005 - 15:26:47 GMT

This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST