Re: Development environment

2011-04-29 Thread Jan Lehnardt
On 29 Apr 2011, at 06:36, Andrey Somov wrote: > P.S. I have already identified some redundant code ( > https://issues.apache.org/jira/browse/COUCHDB-920). > I hope I can further improve the code base when I am able to debug the > running database. Thank you for your efforts Andrey and thanks for

Re: Development environment

2011-04-29 Thread Jan Lehnardt
On 28 Apr 2011, at 19:17, Nathan Stott wrote: > Originally, (until 0.11 I think?) CouchDB was developed without unit > tests. That is not correct. The source has always contained testing code for the harder parts of CouchDB. They just weren't always accessible to the user, but only to developers

Re: Development environment

2011-04-29 Thread Andrey Somov
Hi Robert, unfortunately, I could not build distel (on Ubuntu 10.04): trop:~/distel-bdionne$ erl Erlang R13B03 (erts-5.7.4) [source] [rq:1] [async-threads:0] [hipe] [kernel-poll:false] Eshell V5.7.4 (abort with ^G) 1> trop:~/distel-bdionne$ make --debug GNU Make 3.81 Copyright (C) 2006 Free So

Re: Development environment

2011-04-29 Thread Andrey Somov
Hello Robert, this is much closer to what I expect. I assume I should follow the procedure described here http://mail-archives.apache.org/mod_mbox/couchdb-dev/200811.mbox/%3cc397e43f-096f-4892-9519-383032622...@dionne-associates.com%3E I will give it a try. Thank you very much. - Andrey P.S. I ha

Re: Development environment

2011-04-29 Thread Robert Dionne
Hi Andrey, I use Distel[1] (Distributed emacs lisp for Erlang), a set of emacs extensions that create a full development environment for Erlang. It connects to a running node so one gets full access to the syntax_tools and source code of Erlang, all at run time. As this brief white paper poin

Re: Development environment

2011-04-29 Thread Noah Slater
On 29 Apr 2011, at 03:17, Nathan Stott wrote: > Originally, (until 0.11 I think?) CouchDB was developed without unit > tests. I take it from this thread it was also developed then without > step-by-step debugging. It's amazing how stable it is and has been in > light of those two facts. Depend

Re: Development environment

2011-04-28 Thread Nathan Stott
Originally, (until 0.11 I think?) CouchDB was developed without unit tests. I take it from this thread it was also developed then without step-by-step debugging. It's amazing how stable it is and has been in light of those two facts. On Thu, Apr 28, 2011 at 7:40 PM, till wrote: > On Fri, Apr 29

Re: Development environment

2011-04-28 Thread till
On Fri, Apr 29, 2011 at 2:38 AM, Miles Fidelman wrote: > Andrey Somov wrote: >> >> On Fri, Apr 29, 2011 at 1:01 AM, Paul >> Daviswrote: >> >> >>> >>> On Thu, Apr 28, 2011 at 6:57 PM, Nathan Stott  wrote: >>> So couchdb is really developed without using step-by-step debugging at all?

Re: Development environment

2011-04-28 Thread Miles Fidelman
Andrey Somov wrote: On Fri, Apr 29, 2011 at 1:01 AM, Paul Daviswrote: On Thu, Apr 28, 2011 at 6:57 PM, Nathan Stott wrote: So couchdb is really developed without using step-by-step debugging at all? That seems quite odd. I never use step by step debugging on any project i

Re: Development environment

2011-04-28 Thread Paul Davis
On Thu, Apr 28, 2011 at 8:21 PM, Andrey Somov wrote: > On Fri, Apr 29, 2011 at 1:01 AM, Paul Davis > wrote: > >> On Thu, Apr 28, 2011 at 6:57 PM, Nathan Stott wrote: >> > So couchdb is really developed without using step-by-step debugging at >> > all?  That seems quite odd. >> > >> >> I never us

Re: Development environment

2011-04-28 Thread Andrey Somov
On Fri, Apr 29, 2011 at 1:01 AM, Paul Davis wrote: > On Thu, Apr 28, 2011 at 6:57 PM, Nathan Stott wrote: > > So couchdb is really developed without using step-by-step debugging at > > all? That seems quite odd. > > > > I never use step by step debugging on any project in any language. > I've ne

Re: Development environment

2011-04-28 Thread Randall Leeds
On Thu, Apr 28, 2011 at 15:57, Nathan Stott wrote: > So couchdb is really developed without using step-by-step debugging at > all?  That seems quite odd. > Most of the time, when I've written couchdb patches and they're wrong I immediately get dying processes, stack traces and errors. The number

Re: Development environment

2011-04-28 Thread Andrew Tunnell-Jones
Tracing seems more common in Erlang. Have you looked at the debugger or redbug? On 28/04/2011, at 10:57 PM, Nathan Stott wrote: > So couchdb is really developed without using step-by-step debugging at > all? That seems quite odd. > > On Thu, Apr 28, 2011 at 5:52 PM, Paul Davis > wrote: >> On

Re: Development environment

2011-04-28 Thread Paul Davis
On Thu, Apr 28, 2011 at 6:57 PM, Nathan Stott wrote: > So couchdb is really developed without using step-by-step debugging at > all?  That seems quite odd. > I never use step by step debugging on any project in any language. I've never found it that useful.

Re: Development environment

2011-04-28 Thread Nathan Stott
So couchdb is really developed without using step-by-step debugging at all? That seems quite odd. On Thu, Apr 28, 2011 at 5:52 PM, Paul Davis wrote: > On Thu, Apr 28, 2011 at 6:45 PM, Andrey Somov > wrote: >> On Thu, Apr 28, 2011 at 7:43 PM, Miles Fidelman >> wrote: >> >>> I'm not 100% sure, b

Re: Development environment

2011-04-28 Thread Paul Davis
On Thu, Apr 28, 2011 at 6:45 PM, Andrey Somov wrote: > On Thu, Apr 28, 2011 at 7:43 PM, Miles Fidelman > wrote: > >> I'm not 100% sure, but I expect Erlide might fill the bill - it's an Erlang >> IDE that runs under Eclipse.  Now how much further that takes you into the >> guts of CouchDB is anoth

Re: Development environment

2011-04-28 Thread Andrey Somov
On Thu, Apr 28, 2011 at 7:43 PM, Miles Fidelman wrote: > I'm not 100% sure, but I expect Erlide might fill the bill - it's an Erlang > IDE that runs under Eclipse. Now how much further that takes you into the > guts of CouchDB is another story. > > I tried to use erlIDE but I did not find a way t

Re: Development environment

2011-04-28 Thread Paul Davis
On Thu, Apr 28, 2011 at 3:19 PM, Benoit Chesneau wrote: > On Thursday, April 28, 2011, Paul Davis wrote: >> On Thu, Apr 28, 2011 at 12:15 PM, Andrey Somov >> wrote: >>> Thank you, but the question is not how to run but how to DEBUG (and watch >>> all the values, function calls etc) >>> Just the

Re: Development environment

2011-04-28 Thread Benoit Chesneau
On Thursday, April 28, 2011, Paul Davis wrote: > On Thu, Apr 28, 2011 at 12:15 PM, Andrey Somov > wrote: >> Thank you, but the question is not how to run but how to DEBUG (and watch >> all the values, function calls etc) >> Just the ability to run CouchDB does not help to understand who is callin

Re: Development environment

2011-04-28 Thread Randall Leeds
The simplest thing is just: make dev ./utils/run -i This will launch couch and drop you into an interacting erlang session. >From there you can use erlang calls to inspect processes, enable tracing, etc. As far as an interactive step debugger I don't know. Never tried. On Thu, Apr 28, 2011 at 1

Re: Development environment

2011-04-28 Thread Miles Fidelman
I'm not 100% sure, but I expect Erlide might fill the bill - it's an Erlang IDE that runs under Eclipse. Now how much further that takes you into the guts of CouchDB is another story. Andrey Somov wrote: Thank you, but the question is not how to run but how to DEBUG (and watch all the values,

Re: Development environment

2011-04-28 Thread Paul Davis
On Thu, Apr 28, 2011 at 12:15 PM, Andrey Somov wrote: > Thank you, but the question is not how to run but how to DEBUG (and watch > all the values, function calls etc) > Just the ability to run CouchDB does not help to understand who is calling > whom, when, how, with which arguments... > Oh, got

Re: Development environment

2011-04-28 Thread Andrey Somov
Thank you, but the question is not how to run but how to DEBUG (and watch all the values, function calls etc) Just the ability to run CouchDB does not help to understand who is calling whom, when, how, with which arguments... - Andrey On Thu, Apr 28, 2011 at 6:10 PM, Paul Davis wrote: > On Thu,

Re: Development environment

2011-04-28 Thread Paul Davis
On Thu, Apr 28, 2011 at 12:03 PM, Andrey Somov wrote: > Hi all, > in order to understand how CouchDB works I want be able to run the > application under debugger. Unfortunately it does not look like an easy > task. > The information provided on the wiiki ( > http://wiki.apache.org/couchdb/Running%