[erlang-questions] dbg

Yoshihiro Tanaka <>
Thu Apr 4 09:48:24 CEST 2013


Hi,

You can also use dbg as following:
dbg:tracer().
dbg:p(all, [call, timestamp]).
dbg:tpl(module_name,func_name,[]).
dbg:tpl(module_name,func_name,x).

This will show the parameters to module_name:func_name when it gets called,
and return value of it with timestamp. The meaning of the built-in alias is
written here: http://www.erlang.org/doc/man/dbg.html


Yoshihiro


On Wed, Apr 3, 2013 at 10:11 PM, Bengt Kleberg
<>wrote:

> Greetings,
>
> This 3:rd argument to dbg:tpl/3 (instead of []) will display the return
> value:
> dbg:fun2ms( fun(_)-> return_trace() end ).
>
>
> bengt
>
> On Wed, 2013-04-03 at 19:00 -0600, Brisa Jiménez wrote:
> > Match specification is for evaluate function params Am I right?
> > How can I get the result of a function for doing something later?
> > Thanks.
> > _______________________________________________
> > erlang-questions mailing list
> > 
> > http://erlang.org/mailman/listinfo/erlang-questions
>
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130404/5009171f/attachment.html>


More information about the erlang-questions mailing list