[erlang-questions] 2 questions

Serge Aleynikov <>
Thu Nov 2 13:43:36 CET 2006


Kirill Zaborski wrote:
> Are there any resources about using Erlang in Emacs?
> And also are there any resources about debugging Erlang (in Emacs or simply
> in erl)? I searched for some tutorial and it seems like there is almost
> nothing except documentation about dbg.

Debugger:
http://www.erlang.org/doc/doc-5.5.1/lib/debugger-3.1/doc/html/part_frame.html
http://www.erlang.org/doc/doc-5.5.1/lib/debugger-3.1/doc/html/index.html

Erlang offers a very powerful tracing facility.  In fact, once you are 
accustomed to it, you will rarely need to use a debugger.

The dbg tracing docs are here:
http://www.erlang.org/doc/doc-5.5.1/lib/runtime_tools-1.6/doc/html/dbg.html

Yet, the example of dbg is documented in a rather non-intuitive place 
(scroll closer to the middle of the page):
http://www.erlang.org/doc/doc-5.5.1/lib/stdlib-1.14.1/doc/html/ms_transform.html

The link below (at the bottom of the page) has an extension of the 
Erlang shell that simplifies usage of tracing facility:
http://forum.trapexit.org/viewtopic.php?t=6206


Serge

> On 11/2/06, Vlad Dumitrescu <> wrote:
>>
>> Hi,
>>
>> On 11/2/06, Nils Müllner < > wrote:
>> >     1: is there a standard ide? currently i use erlide plugin for
>> > eclipse, but i don't find the debugger implemented in there...
>>
>> The standard IDE is still Emacs. We're working on erlide, but there's
>> still a lot to do. The debugger is the next big feature that we are
>> targeting, but I can't give a time estimate now.
>>
>> >     2: as i have to import every module i'd like to use, i wanted to
>> > ask, if there is a nice way to browse one folder for possible modules,
>> > list them and then let the user choose one without the need to import
>> > them all. reason: of my program is extended later, it would be nice to
>> > be able to write modules that are automatically detected.
>>
>> I'm not sure what you mean. One doesn't *have* to import any module,
>> just use Module:Function(). The only thing importing does is let you
>> write less text (i.e. just Function()), at the price of having to
>> worry about function name clashes.
>>
>> best regards,
>> Vlad
>>
>> _______________________________________________
>> erlang-questions mailing list
>> 
>> http://www.erlang.org/mailman/listinfo/erlang-questions
>>
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> erlang-questions mailing list
> 
> http://www.erlang.org/mailman/listinfo/erlang-questions




More information about the erlang-questions mailing list