View Issue Details

IDProjectCategoryView StatusLast Update
0000687XdebugUncategorizedpublic2012-05-06 14:53
Reporternnmatveev Assigned Toderick  
Status closedResolutionfixed 
Target Version2.2.0 
Summary0000687: Xdebug does not show dynamically defined variable

"Dynamically" defined variables aren't visible with dbgp's context_get, but are visible with PHP's get_defined_vars() and actually exists

Steps To Reproduce

$nameHolder = 'name';
$$nameHolder = 'value';
var_dump($$nameHolder);//breakpoint here

Additional Information

TagsNo tags attached.
Attached Files
xdebug.log (34,176 bytes)
Operating System
PHP Version5.3.6



2011-05-13 19:39

reporter   ~0001745

I don't know if this is related but it looks like it.
XDebug only reports a small fraction of an objects attributes compared to DBG.

If you have a class with subclasses DBG shows all member variables as well as the defined properties for both the class and anything it is derived off (including protected and private variables).

I honestly don't know if this is even possible to accomplish in XDebug but it is a lot more work to have to look up and add watches for most of the variables that were readily available in my previous debugger.

For example if an object has a getAttributes() function a ->attributes child variable would be displayed by DBG. I dont know if this is based on PHPDoc property statements or whether it detects getter like functions.

I really like a lot of stuff in XDebug but this is the only point atm that makes me switch back to my previous editor with DBG once in a while. Can you please make an even bigger fanboy out of me by making it so no switching is needed anymore ? :)

Issue History

Date Modified Username Field Change
2011-04-29 16:02 nnmatveev New Issue
2011-04-29 16:02 nnmatveev File Added: xdebug.log
2011-05-13 19:39 Blizz Note Added: 0001745
2012-03-12 16:25 derick Target Version => 2.2.0
2012-05-06 14:53 derick Status new => closed
2012-05-06 14:53 derick Assigned To => derick
2012-05-06 14:53 derick Resolution open => fixed
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