Re: php-general Digest 14 Feb 2011 03:32:02 -0000 Issue 7180

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi.

>> Me stupid, my bad.
>>
>> Turns out the bug isn't in my code, but in the debugger. I'm working
>> with the trial version of Zend Studio. When inside the call to the
>> static method, everything is undefined. If I look at variables using
>> the Expressions view, I can see their values, and they _are_ defined.
>
> Maybe the "break at first line" switch is on in the debug config. If you
> step through you should see all variables. Two things i can think of.
>
> 1. Your breakpoints are set before the var us initialised
> 2. something wrong with your IDE/debugger setup
Nope. Bug in xdebug for Ubuntu documented here:
https://bugs.launchpad.net/ubuntu/+source/xdebug/+bug/545502

The bug comments also contain a link to a debian package which, when
installed, elliminates the bug. Did so, now I have a very nicely
working PHP development environment, which stops at breakpoints
(missing breakpoints was another issue, but that one came from
configuration) and shows the values of variables during debugging.
Only, not showing values of variables is something you definitely
don't expect from a debugger, so initially I didn't even think of the
possibility of a debugger bug.

br,

flj

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux