[erlang-questions] why doesn't this dbg example work?

Vlad Dumitrescu vladdu55@REDACTED
Fri Sep 12 11:52:40 CEST 2014


Hi!

You have to specify first which processes are going to be traced, and how.
dbg:p(self(), [c]), fpr example.

best regards,
Vlad


On Fri, Sep 12, 2014 at 11:45 AM, Leo Liu <sdl.web@REDACTED> wrote:

> Hi there,
>
> In dbg's reference manual, there is this example, which I cannot
> replicate:
>
>     (x@REDACTED)4> dbg:tp(lists,sort,cx).
>     {ok,[{matched,nonode@REDACTED,2},{saved,cx}]}
>     (x@REDACTED)4> lists:sort([2,1]).
>     (<0.32.0>) call lists:sort([2,1]) ({erl_eval,do_apply,5})
>     (<0.32.0>) returned from lists:sort/1 -> [1,2]
>     [1,2]
>
> My shell session:
>
>     (devel@REDACTED)1> dbg:tracer().
>     {ok,<0.2100.0>}
>     (devel@REDACTED)2> dbg:tp(lists, sort, cx).
>     {ok,[{matched,devel@REDACTED,2},{saved,cx}]}
>     (devel@REDACTED)3> lists:sort([2,1]).
>     [1,2]
>
> Note there are no trace outputs in my shell session. Ideas?
>
> Thanks,
> Leo
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140912/aa9167f8/attachment.htm>


More information about the erlang-questions mailing list