[xdebug-general] Re: Watch a PHP variable as XDebug Breakpoint

From: Derick Rethans <derick[@]xdebug.org>
Date: Tue, 28 Jan 2014 09:34:00 +0000 (GMT)

On Sat, 25 Jan 2014, Stefano D. Mtangoo wrote:

> Iam using DBGp protocol to communicate with XDebug and so far its
> great. I can break on specific line numbers with no difficulty. I
> tried to make a watch and got error |breakpoint "type is not
> supported"|, which is clear that XDebug currently does not implement
> it. What made me ask this is, I have seen many IDEs with this feature
> (Eclipse included) and wondered how do they implement it. I want to
> watch expression like
>
> |$criteria = new CDbCriteria();
> |
>
> I want IDE to break there so that I can update a watch window with new value.

I think what they do is to just use "property_get" for all the watches
whenever a breakpoint happens. You can similate this by setting a
breakpoint on the line (after the line of code), and then calling
property_get yourself.

cheers,
Derick

-- 
Like Xdebug? Consider a donation: http://xdebug.org/donate.php
Xdebug | http://xdebug.org | xdebug-general@lists.xdebug.org
twitter: @derickr and @xdebug
Received on Tue Jan 28 2014 - 09:34:01 GMT

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