Re: RFC: built-in web server in CLI.

From: Date: Wed, 20 Apr 2011 14:34:46 +0000
Subject: Re: RFC: built-in web server in CLI.
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-51952@lists.php.net to get a copy of this message
On 20 April 2011 15:18, Dave Ingram <dave@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

« previous php.internals (#51952) next »