View Issue Details

IDProjectCategoryView StatusLast Update
0000619XdebugUncategorizedpublic2011-09-25 22:27
Reporterjasonwyz98 Assigned Toderick  
PriorityhighSeveritymajorReproducibilityalways
Status closedResolutionfixed 
PlatformLinuxOSUbuntuOS Version10.04
Product Version2.1.0 
Summary0000619: Xdebug does NOT show "private" properties defined in parent classes
Description

Xdebug does NOT show "private" properties defined in parent class when "break point" is set in child class.

IDE: PhpStorm "http://www.jetbrains.com/phpstorm/" [^]

PHP: PHP 5.3.3 by dotdeb.org

Xdebug Config:

zend_extension="/usr/lib/php5/20090626+lfs/xdebug.so"
xdebug.remote_enable=On
xdebug.remote_log="/home/jason/srv/www/test.net/logs/xdebug.log"
xdebug.collect_params=3
xdebug.profiler_enable_trigger=1
xdebug.profiler_output_dir="/home/jason/srv/www/test.net/Profiles"

Thanks

Steps To Reproduce

namespace Tests;

abstract class P {

private $private_prop = ''; // does NOT show up

protected $protected_prop = ''; // Shows

public $public_prop = ''; // Shows

protected function test() {}

}

class C extends P {

public function __construct() {} // Set "break point" here

}

$c = new C();

Tagsprivate properties
Operating SystemUbuntu 10.04
PHP Version5.3.3

Activities

thaddeusmt

2010-09-28 00:11

reporter   ~0001575

Last edited: 2010-09-28 00:12

I can confirm this bug.

Running PHP Version 5.2.10-2ubuntu6 on ubuntu 10.04 with Xdebug v2.1.0 (non thread safe).

Private variables of parent class are not output in Eclipse (helios) during a remote debug session. Public variables are shown as expected. The previous version of xdebug I was using worked fine - wish I could remember what version that was an roll back!

Thanks

* Xdebug installed: 2.1.0
* Server API: Apache 2.0 Handler
* Windows: no
* Zend Server: no
* PHP Version: 5.2.10-2
* Zend API nr: 220060519
* PHP API nr: 20060613
* Debug Build: no
* Thread Safe Build: no
* Configuration File Path: /etc/php5/apache2
* Configuration File: /etc/php5/apache2/php.ini
* Extensions directory: /usr/lib/php5/20060613+lfs

thaddeusmt

2010-09-28 15:33

reporter   ~0001576

just noticed this "closed" bug, probably related:
http://bugs.xdebug.org/view.php?id=494

thaddeusmt

2011-03-17 15:10

reporter   ~0001692

So, this may actually work like it's supposed to but I didn't know how to set it up. If you set this setting in your php.ini you will get the parent variables (I think):

collect_vars = On

nnmatveev

2011-04-29 15:51

reporter   ~0001729

Related issue from PhpStorm issue tracker:
http://youtrack.jetbrains.net/issue/WI-5644

derick

2011-08-14 18:02

administrator   ~0001784

Fixed for 2.1.2 and 2.2.

derick

2011-09-25 22:27

administrator   ~0001809

I meant 2.1.3 and 2.2-dev.

Issue History

Date Modified Username Field Change
2010-09-23 01:21 jasonwyz98 New Issue
2010-09-23 03:51 jasonwyz98 Tag Attached: private properties
2010-09-28 00:11 thaddeusmt Note Added: 0001575
2010-09-28 00:12 thaddeusmt Note Edited: 0001575
2010-09-28 15:33 thaddeusmt Note Added: 0001576
2011-03-17 15:10 thaddeusmt Note Added: 0001692
2011-04-29 15:51 nnmatveev Note Added: 0001729
2011-08-14 18:02 derick Note Added: 0001784
2011-08-14 18:02 derick Status new => closed
2011-08-14 18:02 derick Assigned To => derick
2011-08-14 18:02 derick Resolution open => fixed
2011-09-25 22:27 derick Note Added: 0001809
2016-07-31 12:36 derick Category Usage problems => Usage problems (Crashes)
2016-07-31 12:38 derick Category Usage problems (Crashes) => Usage problems (Wrong Results)
2020-03-12 16:35 derick Category Usage problems (Wrong Results) => Variable Display
2020-03-12 16:38 derick Category Variable Display => Uncategorized