From dev-return-7638-apmail-couchdb-dev-archive=couchdb.apache.org@couchdb.apache.org Thu Dec 10 20:54:40 2009 Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 85811 invoked from network); 10 Dec 2009 20:54:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Dec 2009 20:54:40 -0000 Received: (qmail 46561 invoked by uid 500); 10 Dec 2009 20:54:39 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 46464 invoked by uid 500); 10 Dec 2009 20:54:39 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 46454 invoked by uid 99); 10 Dec 2009 20:54:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Dec 2009 20:54:39 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gcdcd-couchdb-2@m.gmane.org designates 80.91.229.12 as permitted sender) Received: from [80.91.229.12] (HELO lo.gmane.org) (80.91.229.12) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Dec 2009 20:54:37 +0000 Received: from list by lo.gmane.org with local (Exim 4.50) id 1NIq1e-0005DO-Nv for dev@couchdb.apache.org; Thu, 10 Dec 2009 21:54:14 +0100 Received: from dsl-63-249-119-34.static.cruzio.com ([63.249.119.34]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 10 Dec 2009 21:54:14 +0100 Received: from rogerb by dsl-63-249-119-34.static.cruzio.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 10 Dec 2009 21:54:14 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: dev@couchdb.apache.org From: Roger Binns Subject: Re: Debugging show/view/list/filter etc code Date: Thu, 10 Dec 2009 12:53:49 -0800 Lines: 37 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: dsl-63-249-119-34.static.cruzio.com User-Agent: Thunderbird 2.0.0.23 (X11/20090817) In-Reply-To: X-Enigmail-Version: 0.95.7 Sender: news -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Chris Anderson wrote: >> I've been working on the query server JSON line protocol over the last >> few days and have recently uncovered an as-yet-undiscovered trove of >> much better error messages. It certainly would be nice to have better error messages but that doesn't really help with debugging. For example you can't single step, insert breakpoints, examine objects etc. > (apologies for the Short Circuit 2 reference...) You need to more than apologise :-) In any event your work is orthogonal to what I am talking about. Firebug is already a great interactive Javascript debugger and comes with a user interface so there is no need to reinvent the debugger side of things. Assembling a representative page is also pretty easy in concept. Suck out the relevant filter/view/show from the server and put in a few lines of glue logic to grab the data they operate on. What I don't know is if the page plus all glue logic has to be provided as a single entity from the server (in which it involves more erlang hacking than I am prepared to do) or if Javascript code running in the browser can incrementally build up the code pieces and then initiate Firebug on them. If the latter is the case then it would work as a great feature within or alongside futon. Roger -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkshX90ACgkQmOOfHg372QRLUgCdGHaEbl7zH04+66GB7xX2xD0V uEMAoIFz5VmPzIjA28pxdjM4kwVmb5I3 =zhpi -----END PGP SIGNATURE-----