As you know, you can now track Erlang functions using a short form:
dbg:tpl(Module, Function, x).
Instead of the usual:
dbg:tpl(Module, Function, dbg:fun2ms(fun(_) -> exception_trace() end)).
I'm really wondering if the same short form is available for return_trace() . Sort of:
dbg:tpl(Module, Function, r).
Instead:
dbg:tpl(Module, Function, dbg:fun2ms(fun(_) -> return_trace() end)).
The source code in the dbg module does not seem to imply:
new_pattern_table() -> PT = ets:new(dbg_tab, [ordered_set, public]), ets:insert(PT, {x, term_to_binary([{'_',[],[{exception_trace}]}])}), ets:insert(PT, {exception_trace, term_to_binary(x)}), PT.
But I could be wrong. Do you know anything?