On Thu, Apr 28, 2011 at 3:19 PM, Benoit Chesneau <[email protected]> wrote: > On Thursday, April 28, 2011, Paul Davis <[email protected]> wrote: >> On Thu, Apr 28, 2011 at 12:15 PM, Andrey Somov >> <[email protected]> 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, gotchya. Yeah, I know Bob Dionne does some stuff with emacs and >> distel or something or other. I'm one of those weirdos that just uses >> a lot of ?LOG_DEBUG/?LOG_INFO calls when I need to investigate >> something. >> > > or io:format ?
And Rob Newson mentioned erlang:display(Term) as well. >>> - >>> Andrey >>> >>> On Thu, Apr 28, 2011 at 6:10 PM, Paul Davis >>> <[email protected]>wrote: >>> >>>> On Thu, Apr 28, 2011 at 12:03 PM, Andrey Somov >>>> <[email protected]> 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%20CouchDB%20in%20Dev%20Mode) may >>>> be >>>> > enough for a >>>> > professional Erlang developer but it is not enough for anyone who learns >>>> > Erlang together with CouchDB. >>>> > I could not find any resource which gives step-by-step instructions on >>>> how >>>> > to organise an effective development environment for CouchDB. >>>> > >>>> > Can someone point me to such a guide/tutorial/manual/screencast ? >>>> > >>>> > Thanks, >>>> > Andrey >>>> > >>>> >>>> Getting deps on Ubuntu (maybe debian?) >>>> >>>> $ sudo apt-get build-deps couchdb >>>> >>>> On OS X with Homebrew you should only need to do something like: >>>> >>>> $ brew install erlang >>>> $ brew install spidermonkey >>>> $ brew install icu4c && brew link icu4c >>>> >>>> Then for CouchDB: >>>> >>>> $ mkdir -p ~/code && cd code >>>> $ svn checkout http://svn.apache.org/repos/asf/couchdb/trunk couchdb >>>> $ # alternatively: git clone git://git.apache.org/couchdb.git >>>> $ cd couchdb >>>> $ ./bootstrap && ./configure && make dev >>>> $ ./utils/run >>>> >>> >> >
