On 02/14/2011 05:53 AM, Florin Jurcovici wrote:
> 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.

I had no idea you were using Xdebug. When you said Zend Studio i assumed
you were using the standard Zend debugger. My bad.

Been trying to get Xdebug working in combination with Zend Studio 8. The
two seem to talk to each other. But Zend Studio doesn't display any
data, no breakpoints, etc

i compiled from source since i am using Zend Server. No luck. So back to
the Zend Debugger for now.

> br,
> flj

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

Reply via email to