I always use this, i call it at start, then it trace every call on the module
open_tracer(Module) ->
dbg:tracer(),
dbg:p(all, [call]),
dbg:tpl(Module, [{'_', [], [{return_trace}]}]).
great this works!
Is there any way to redirect traces to a file? I mean with
specialized handler ...
dbg:tracer
(port,dbg:trace_
port(file,{"/log/
trace",wrap,atom_
to_list(node
()),50000000,12})).
like at the function trace_port, and there is a discusstion i found
stackoverflow.com/questions/1954894/using-trace-and-dbg-in-erlang