This tag is associated with 1 post

Tracing Erlang Functions

Tracing Erlang functions for debugging purposes is probably simpler than you could even imagine. Let say you have the following module and you want trace one of its functions. -module(math). -export([sum/2, diff/2]). sum(A, B) -> A + B. diff(A, B) -> A – B. Just start the tracer: > dbg:tracer() Say the tracer that you … Continue reading