xdebug - oordering of variables [message #29126] |
Fri, 15 June 2007 14:46 |
Eclipse User |
|
|
|
Originally posted by: omry.yadan.net
Currently variables appears to be ordered randomly.
it will be very nice if there were better ordering.
here is a suggestion:
* global variables are visible via a separate global variables tab.
* local variables ordered by the order they are introduced on the stack.
so, if we have this example:
function foo($bar, $baz)
{
$x = 5;
if (test())
{
$str = "hello";
}
$y = 9;
[RUN-CURSOR]
}
we wuold have
$x = 5;
$str = "hello";
$y = 9;
but if test() would return false, then we had:
$x = 5;
$y = 9;
thoughts?
|
|
|
|
Re: xdebug - oordering of variables [message #29202 is a reply to message #29164] |
Fri, 15 June 2007 17:15 |
Eclipse User |
|
|
|
Originally posted by: omry.yadan.net
I am using 2.0.0 RC4. (works fine, despite the stern "works only for
RC3" warning).
Dave Kelsey wrote:
> Super globals on a different tab would be nice. It would require a bit
> of work in providing an updated variable view though so don't know if
> I will get a chance to do that.
>
> As for variable ordering, I am at the mercy of the order that XDebug
> provides them to the debug client so the order shown is the order
> received. I am surprised that clicking on the "Name" column doesn't
> sort the names in the view and I don't know if I can influence the
> view to support that or whether I would again have to provide my
> own variable view.
>
> Which version of PHP XDebug extension are you using just out of interest ?
>
> Dave Kelsey
>
>
> omry@yadan.net wrote:
>> Currently variables appears to be ordered randomly.
>> it will be very nice if there were better ordering.
>> here is a suggestion:
>> * global variables are visible via a separate global variables tab.
>> * local variables ordered by the order they are introduced on the stack.
>>
>> so, if we have this example:
>> function foo($bar, $baz)
>> {
>> $x = 5;
>> if (test())
>> {
>> $str = "hello";
>> }
>> $y = 9;
>>
>> [RUN-CURSOR]
>> }
>>
>> we wuold have
>> $x = 5;
>> $str = "hello";
>> $y = 9;
>>
>> but if test() would return false, then we had:
>> $x = 5;
>> $y = 9;
>>
>> thoughts?
|
|
|
Powered by
FUDForum. Page generated in 0.03443 seconds