No $_SESSION in variables view with Xdebug [message #67367] |
Fri, 21 March 2008 19:19 |
Eclipse User |
|
|
|
Originally posted by: mangst.inventec.ch
Hi,
When debugging with xdebug i see all superglobals in variables view
($_COOKIE, $_ENV, $_FILES, $_GET, $_POST, $_REQUEST, $_SERVER) except
$_SESSION. Everything else is working fine; stepping, showing variable
values with mouseover. A mouseover of $_SESSION in code even shows the
size of the array.
Debugging the same application on the same server with the Notepad++
xdebug client plugin shows the $_SESSION array. So the server component of
xdebug is probably not the cause.
Can anybody reproduce this? Or am I doing something wrong?
Eclipse Version: 3.3.2
Build id: M20080221-1800
PDT: 1.0.2v20080102
Xdebug: php_xdebug-2.0.2-5.2.5.dll
PHP 5.2.5
Apache 2.2.4 (Win32)
Thanks!
Markus Angst
|
|
|
Re: No $_SESSION in variables view with Xdebug [message #67392 is a reply to message #67367] |
Fri, 21 March 2008 20:56 |
Eclipse User |
|
|
|
Originally posted by: dkel50.hotnospmail.com
Hi Markus, this is possibly due to a bug in PDT where the superglobals
are not updated once a debug session is established. So if the $_SESSION
information doesn't populate until partly down the script execution then
you won't see the _SESSION variable. You can work around this by adding
$_SESSION to the expressions view and thus watch the variable.
This was fixed in the PDT 1.0x branch a while ago, but I have no idea if
or when another version of PDT 1.0x is going to be released.
Dave Kelsey
Markus Angst wrote:
> Hi,
>
> When debugging with xdebug i see all superglobals in variables view
> ($_COOKIE, $_ENV, $_FILES, $_GET, $_POST, $_REQUEST, $_SERVER) except
> $_SESSION. Everything else is working fine; stepping, showing variable
> values with mouseover. A mouseover of $_SESSION in code even shows the
> size of the array.
>
> Debugging the same application on the same server with the Notepad++
> xdebug client plugin shows the $_SESSION array. So the server component
> of xdebug is probably not the cause.
>
> Can anybody reproduce this? Or am I doing something wrong?
>
> Eclipse Version: 3.3.2
> Build id: M20080221-1800
> PDT: 1.0.2v20080102
> Xdebug: php_xdebug-2.0.2-5.2.5.dll
> PHP 5.2.5
> Apache 2.2.4 (Win32)
>
> Thanks!
> Markus Angst
>
>
|
|
|
Re: No $_SESSION in variables view with Xdebug [message #67494 is a reply to message #67392] |
Wed, 26 March 2008 17:49 |
Eclipse User |
|
|
|
Originally posted by: mangst.inventec.ch
Hi Dave
> Hi Markus, this is possibly due to a bug in PDT where the superglobals
> are not updated once a debug session is established. So if the $_SESSION
> information doesn't populate until partly down the script execution then
> you won't see the _SESSION variable. You can work around this by adding
> $_SESSION to the expressions view and thus watch the variable.
I can reproduce this behaviour. Thank you very much for your quick help!
Markus Angst
|
|
|
Powered by
FUDForum. Page generated in 0.03050 seconds