Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » xdebug - oordering of variables
xdebug - oordering of variables [message #29126] Fri, 15 June 2007 14:46 Go to next message
Eclipse UserFriend
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 #29164 is a reply to message #29126] Fri, 15 June 2007 16:34 Go to previous messageGo to next message
D Kelsey is currently offline D KelseyFriend
Messages: 232
Registered: July 2009
Senior Member
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?
Re: xdebug - oordering of variables [message #29202 is a reply to message #29164] Fri, 15 June 2007 17:15 Go to previous message
Eclipse UserFriend
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?
Previous Topic:xdebug and firefox tabs
Next Topic:How to run latest nightly?
Goto Forum:
  


Current Time: Fri Apr 26 14:29:39 GMT 2024

Powered by FUDForum. Page generated in 0.04527 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top