Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:51952 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6777 invoked from network); 20 Apr 2011 14:35:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Apr 2011 14:35:08 -0000 Authentication-Results: pb1.pair.com smtp.mail=rquadling@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rquadling@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: rquadling@gmail.com X-Host-Fingerprint: 209.85.216.170 mail-qy0-f170.google.com Received: from [209.85.216.170] ([209.85.216.170:35789] helo=mail-qy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 15/03-24878-C1FEEAD4 for ; Wed, 20 Apr 2011 10:35:08 -0400 Received: by qyk32 with SMTP id 32so2385592qyk.8 for ; Wed, 20 Apr 2011 07:35:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=9Bqoetbx2dJMriS+c09SQ2q0XQBHLdJnc8XqRxBRNCo=; b=XavKVUDtjdOnVFFaCuWXv/ZKwE4xnNi/0UwLyybgpeXMy9aZtYZVOX3+XWJ1jg5+fa BrkIqeF7+RFm1pDWpP1inb3i2IXtY04J8hQpbTJIRPvhCb6ioujWozubs2LtlYrI8E0H Pjb1cwn2jj4uYXDjx7cWrfJE2Qcsb2Q43zBE4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; b=vP8W/WPCcKU8vbusMNSuDJNLsxZDEs5WZ1gEVhmTaqtk97uulRkZ2nxfDVUMULRcNh 9b+wW8KoI1n4kd9uFtDVD0F7bzl4G002oknEaCa2kqTfGocljHHbpmWxWvhI+OU6EGoc nmE8yf7lrrkR5v9THrNqELWFwsPqvqBy0icFE= Received: by 10.229.46.74 with SMTP id i10mr5555601qcf.64.1303310106115; Wed, 20 Apr 2011 07:35:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.106.194 with HTTP; Wed, 20 Apr 2011 07:34:46 -0700 (PDT) Reply-To: RQuadling@GMail.com In-Reply-To: <4DAEEB1D.507@dmi.me.uk> References: <4D704BA5.5080402@oracle.com> <14.AE.01409.86D7DAD4@pb1.pair.com> <4DAEEB1D.507@dmi.me.uk> Date: Wed, 20 Apr 2011 15:34:46 +0100 Message-ID: To: Dave Ingram Cc: Michael Morris , internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] RFC: built-in web server in CLI. From: rquadling@gmail.com (Richard Quadling) On 20 April 2011 15:18, Dave Ingram 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