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 10:43, Miles Fidelman <[email protected]> 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. > > 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... >> >> - >> 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 >>> >>> >> >> > > > -- > In theory, there is no difference between theory and practice. > In<fnord> practice, there is. .... Yogi Berra > > >
