Next: , Previous: Completion, Up: Programming Aids


2.3 Evaluting Erlang Code

Distel includes some simple ways to evaluate Erlang code, described here. More elaborate interactive evaluation is provided by Interactive Sessions (see Interactive Sessions).

C-c C-d :
Read an Erlang expression from the minibuffer, evaluate it on an Erlang node, and show the result. If there is an active region in the source buffer, that region will be the default that is displayed in the minibuffer. (erl-eval-expression)
C-c C-d L
Read a module name from the minibuffer and reload that module in an Erlang node. (erl-reload-module)
C-c C-d r
Reload all loaded modules that are out of date (i.e. the loaded beam is compiled before the corresponding beam file.) (erl-reload-modules)