On 20 April 2011 15:18, Dave Ingram <d...@dmi.me.uk> wrote:
> On 04/19/11 15:44, Michael Morris wrote:
>> watch ($var) -> $var is sent to the console on the line this statement is
>> made with the statment "now watching 'var'.. init value "x", and then each
>> time it changes it is updated in the console.
> Just my 0.02 as a user, but it strikes me that watch() could be a handy
> addition that would be difficult and/or extremely painful to do in userland.
>
>
> Dave

Being able to watch($var [, ...]), unwatch($var [, ...]) and
trace([bool $start = true]) without a debugger in userland ...

Just like you can overload session handling logic by using
session_set_save_handler(), would something like ...

bool debugging_set_handler(callback $watch, callback $unwatch, callback $trace);

be of use?

-- 
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to