Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 66937 invoked from network); 12 Sep 2008 00:34:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Sep 2008 00:34:02 -0000 Received: (qmail 2832 invoked by uid 500); 12 Sep 2008 00:33:58 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 2794 invoked by uid 500); 12 Sep 2008 00:33:58 -0000 Mailing-List: contact couchdb-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-user@incubator.apache.org Delivered-To: mailing list couchdb-user@incubator.apache.org Received: (qmail 2783 invoked by uid 99); 12 Sep 2008 00:33:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Sep 2008 17:33:58 -0700 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of paul.joseph.davis@gmail.com designates 209.85.198.247 as permitted sender) Received: from [209.85.198.247] (HELO rv-out-0708.google.com) (209.85.198.247) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Sep 2008 00:33:01 +0000 Received: by rv-out-0708.google.com with SMTP id k29so581149rvb.0 for ; Thu, 11 Sep 2008 17:33:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=P0ju89aTIsbpsnIozcqTzuu4tnP4Yz9GDxFMUYv06nw=; b=e7BO04kol4XL91LGbeg8J8B7+cC8liphORQ9uy+V4rjToLB7ZeaWHklUWSN5P7TjpX D4NkKBWPwqAMZ+iAyvY+aLXVqRu2EPommItJJV+Sjf9xB5R/xuI4aVWZ5iNDyPpDsUDu +p12Gpx97F1ZC462oAkOk7u4YJ/V+XxbvoG5k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=Jtdr50xmt7cusrmWTYDjzEOqll6QiYAU4liN4F3IePeB5hmLmnzxvQGzaC4QVzbNL3 Rv6wnuteOxxGvqRz09WLGBCQgtoNHZJ28bTy6+mef7kHAlNizTuIz0anbxmKyJ8lDzsb 4bTdXEv3w2MSQxr9xa1t7jCBt61RfmqlsE68k= Received: by 10.141.3.17 with SMTP id f17mr2172815rvi.180.1221179604041; Thu, 11 Sep 2008 17:33:24 -0700 (PDT) Received: by 10.141.77.13 with HTTP; Thu, 11 Sep 2008 17:33:23 -0700 (PDT) Message-ID: Date: Thu, 11 Sep 2008 20:33:24 -0400 From: "Paul Davis" To: couchdb-user@incubator.apache.org Subject: Re: Debugging In-Reply-To: <958387040809111722j3d914bb9o2ec98edb5b04c460@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <958387040809111722j3d914bb9o2ec98edb5b04c460@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Did you try something like this: http://localhost:5984/mytestdb/_all_docs?startkey="61268dcc7808ca35fb3fb2b103db4abc" Some of the url parameters need to be json encoded, but I have trouble remembering exactly which ones. (pretty sure startkey needs to be, but maybe we should have a wiki page for that.) For debugging, I tend to use lots of ?DEBUG macros in the code. Generally when diagnosing a specific error I try to use requests via curl so I can reduce the noise of the browser requesting Futon's static media. Others also use Firebug or similar tools. I don't really use the interactive shell mainly because I'm not overly comfortable with erlang. HTH, Paul On Thu, Sep 11, 2008 at 8:22 PM, Roberto R wrote: > Hi all, > > I'm new to CouchDB, so this might be something that was already asked. I > did search the mail archives though. Anyway, here's a bunch of questions: > > What is the best way to run CouchDB for debugging? > I've gone through the "Contributing" page on the wiki to build (but not > install) from svn and put together a development config file, but for some > reason, I'm getting a crash on startup. The 0.8.1 release is installed just > fine, and I made sure it's not running. > > Apart from getting the latest code running, what is the recommended way to > debug an error? > Do you use the couchdb Erlang interactive shell? > Is there an easy way to kick-off the Erlang debugger with CouchDB? > Do you create your own HTTP requests in the shell or just use the JavaScript > tests? What if you want to see intermediate values? > > I'm basically trying to figure out why a simple startkey request is causing > an error -- > http://localhost:5984/mytestdb/_all_docs?startkey=61268dcc7808ca35fb3fb2b103db4abc > > The returned JSON error message shows that it's occuring in cjson tokenize, > which makes me want to figure out what is happening at that point in the > code. > > Thanks! > > Roberto >