[erlang-questions] Get call trace from function

Ulf Wiger (TN/EAB) ulf.wiger@REDACTED
Fri Feb 16 09:30:15 CET 2007


> Bengt Kleberg wrote:
> (*) dbg:ctlr( Module, Function, []) would give the return 
> trace of dbg:tpl( Module, Function, [{'_', [], [{return_trace}]}])

That would be convenient.

I alternate between the clumsy tpl() version above and
dbg:tpl(Module,Function,dbg:fun2ms(fun(_) -> return_trace() end)),

which is 10 chars longer, but at least has fewer brackets in it.

Either way, it's a pain to have to write that much for something
so useful.

BR,
Ulf W





More information about the erlang-questions mailing list