View Issue Details

IDProjectCategoryView StatusLast Update
0001949XdebugStep Debuggingpublic2021-10-04 09:32
Reportergbell Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
PlatformPHP cliOSUbuntuOS Version20.04
Product Version2.9.2 
Target Version3.1devFixed in Version3.1.0 
Summary0001949: private properties for internal classes can't be fetched for debugging
Description

But Xdebug won't show SplDoublyLinkedLists. Tried PHPStorm and Vdebug in Vim.

[3704398] <- property_get -i 14 -n "$stack->SplDoublyLinkedListdllist" -d 0
[3704398] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="property_get" transaction_id="14" status="break" reason="ok"><error code="300"><message><![CDATA[can
not get property]]></message></error></response>

Steps To Reproduce
  1. Run the attached xdebug_test.php, setting a breakpoint sometime after $stack->push
  2. Attempt to view the contents of $stack
  3. See "can not get property" response from Xdebug
Additional Information

$ php -v
PHP 7.4.3 (cli) (built: Oct 6 2020 15:47:56) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.3, Copyright (c), by Zend Technologies
with Xdebug v2.9.2, Copyright (c) 2002-2020, by Derick Rethans

TagsNo tags attached.
Operating SystemUbuntu 20.04
PHP Version7.4.0-7.4.4

Activities

gbell

2021-02-18 23:56

reporter   ~0005686

Typo in description, sorry. Should be:
"Xdebug won't show SplDoublyLinkedLists. Tried PHPStorm and Vdebug in Vim."

derick

2021-02-19 12:23

administrator   ~0005688

This seems likely, as I've only covered certain SPL classes: https://github.com/xdebug/xdebug/blob/master/src/lib/var.c#L277-L311

derick

2021-02-19 12:24

administrator   ~0005689

Your phpinfo() says "Xdebug v2.9.2", so please upgrade to 3.0.2 first too, as Xdebug 2 is no longer supported

gbell

2021-02-24 18:27

reporter   ~0005696

Sorry, that was the wrong php instance.

Correct information:

PHP 7.3.27 (cli) (built: Feb 4 2021 18:57:50) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.27, Copyright (c) 1998-2018 Zend Technologies
with Xdebug v3.0.2, Copyright (c) 2002-2021, by Derick Rethans
with Zend OPcache v7.3.27, Copyright (c) 1999-2018, by Zend Technologies

derick

2021-04-28 14:20

administrator   ~0005866

https://github.com/xdebug/xdebug/pull/740