View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0000687||Xdebug||Uncategorized||public||2011-04-29 16:02||2012-05-06 14:53|
|Summary||0000687: Xdebug does not show dynamically defined variable|
|Description||"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||<?php|
$nameHolder = 'name';
$$nameHolder = 'value';
|Tags||No tags attached.|
xdebug.log (34,176 bytes)
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 ? :)
|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|