gpt4 book ai didi

crash - 谁能解释erlang的错误回溯?

转载 作者:行者123 更新时间:2023-12-03 16:32:27 25 4
gpt4 key购买 nike

  • 有没有一种在shell中打印漂亮错误跟踪的好方法?
  • 如何理解错误跟踪?

  • 谢谢!
    error 2012-05-30 15:53:49 <0.132.0> {supervisor_report,
    [{supervisor,{local,ems_media_sup}},
    {errorContext,child_terminated},
    {reason,{undef,[{erlang,raise,[{timeout,
    {rtmp,<<"http://video.zengee.com/clip.mp4">>}}],""},{rtmp_lib,play,1,[{file,"src/rtmp_lib.erl"},
    {line,159}]}, {ems_media,handle_info,2,
    [{file,"src/media/ems_media.erl"},
    {line,837}]},{gen_server_ems,handle_msg,5,[{file,"src/core/gen_server_ems.erl"},
    {line,580}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]}},
    {offender,[{pid,<0.718.0>},{name,ems_media},{mfargs,{ems_media,start_link,
    [rtmp_media,[{host,default},{name,<<"videojs">>},
    {type,rtmp},{url,"http://video.zengee.com/clip.mp4"}]]}},{restart_type,permanent},{shutdown,3000},{child_type,worker}]}]}

    最佳答案

    请参见reason标签。在您的示例中:

     {reason,{undef,[{erlang,raise,[{timeout,...

    Erlang undef-在评估函数调用时找不到该函数。

    关于crash - 谁能解释erlang的错误回溯?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10812229/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com