[erlang-questions] Get call trace from function

Bengt Kleberg bengt.kleberg@REDACTED
Fri Feb 16 08:52:32 CET 2007


On 2007-02-15 20:06, Lennart Ohman wrote:
> Hi, you might want to take a look at the match-spec actionterm
> 'caller'.
> See http://www.erlang.se/doc/doc-5.5.3/erts-5.5.3/doc/html/part_frame.html
> 

this is the second most sought after trace (the first beeing the return 
values of the called function).
would it not be a good idea to have these 2 as predefined functions(*) 
in the dbg module? i realise that it is possible to ask for very many 
predefined functions since the mathc-spec can do anything, but some are 
more interesting than others.

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


bengt
-- 
Those were the days...
    EPO guidelines 1978: "If the contribution to the known art resides
    solely in a computer program then the subject matter is not
    patentable in whatever manner it may be presented in the claims."



More information about the erlang-questions mailing list