couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roger Binns <>
Subject Re: Debugging show/view/list/filter etc code
Date Thu, 10 Dec 2009 20:53:49 GMT
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.

Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla -


View raw message