[erlang-questions] : Examining bindings on the stack

Brian Candler B.Candler@REDACTED
Wed Sep 10 17:00:14 CEST 2008


On Wed, Sep 10, 2008 at 11:12:36AM +0200, Raimo Niskanen wrote:
> Then you would love:
> 	Match_spec = [{'_',[],[{exception_trace}]}].

Nice. I need to start making a recipe page to copy-paste from.

> There is acually an error in the dbg documentation here. The 'all's are
> not the same. erlang:trace/3's 'all' is as documented, but dbg's 'all' is
> [m,c,p,garbage_collection,running,sos,sofs,sol,sofl,timestamp,arity,return_to],
> it's in the source.

Ah I see it: lib/runtime_tools/src/dbg.erl

all() ->
    [send,'receive',call,procs,garbage_collection,running,
     set_on_spawn,set_on_first_spawn,set_on_link,set_on_first_link,
     timestamp,arity,return_to].

> 	dbg:p(Regname, [m,c,p,sos,timestamp])

Also to go on the copy-paste page. Thanks again!

Regards,

Brian.



More information about the erlang-questions mailing list