我在一个牛仔示例中修改了relx.config,添加了runtime_tools {release, {echo_get_example, "1"}, [runtime_tools, echo_get]}. {extended_start_script, true}.
当我使用dbg:start() tracer dbg:-> () -> ...调用函数时不输出任何内容。为什么?
发布于 2015-12-10 20:50:01
由于您可以实际调用dbg模块,因此很可能已经成功地将其包含在发行版中。
您是否正在与远程节点连接?在这种情况下,您必须告诉dbg在您连接的节点上进行跟踪:
debugger@localhost> dbg:tracer().
{ok,<0.35.0>}
debugger@localhost> dbg:n(target@host).
{ok,target@host}
debugger@localhost> dbg:p(all, call).
{ok,[{target@host,33},{debugger@localhost,34}]}
debugger@localhost> dbg:tp(...)更多细节在here和the documentation for dbg中。
https://stackoverflow.com/questions/34197412
复制相似问题