[xdebug-general] Re: 2 Queries about XDebug 2.0.0rc1

From: Dave Kelsey <d_kelsey[@]uk.ibm.com>
Date: Wed, 18 Oct 2006 11:24:52 +0100

I guess I am confused about the scope of PHP variables. With a Stack
structure of

  Level 1
    Level 2
      Level 3

I want to show the variables that are accessible at that stack level
so if I click on Main, I want to show all the local variables at that
level plus the super globals, anything else declared as global.

If I click on Level 3, I want to show all the local variables for that
plus the super globals, plus anything declared as global. But my local
in Main get in included on the global context_get (which also includes the
super globals), but as my php code shows at level 3, the superglobals are
the local variables are available and any explicitly defined variables are
but not the local variables defined at main. But XDebug has included these
so I present a list of local variables in Main + Super globals, plus the
context variables
are level 3, but the local variables in Main are not accessible, so I
currently have to
explicitly remove them from my presentation in order to provide the correct
list of
exposed variables at the appropriate level.

Does this make sense ?

(Sorry about the top-post, what is the preferred way to post replies ?)

Many thanks

Dave Kelsey
Received on Wed Oct 18 2006 - 12:22:23 BST

This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST