1> dbg:get_tracer().
{error,{no_tracer_on_node,nonode@nohost}}
2> dbg:tracer().
{ok,<0.33.0>}
3> dbg:get_tracer().
{ok,<0.35.0>}document告诉我们:get_tracer返回the process or port to which all trace messages are sent.
但是它没有清楚地说明dbg:tracer返回的pid是什么
发布于 2012-11-01 08:57:22
正如您在pman中看到的,实际上有两个进程:
你可以在这里看到他们在做什么:https://github.com/erlang/otp/blob/maint/lib/runtime_tools/src/dbg.erl
我没有深入研究这一点,但乍一看,前者做的更像是经理式的工作,而后者实际上处理的是跟踪。
https://stackoverflow.com/questions/12575337
复制相似问题