<div dir="ltr">I'm using Erlang/OTP 17 on Mac OS, and I'm seeing a weird behavior with the debugger. <div><br></div><div>I'm pretty new to the Erlang world, so not sure what is expected or not ..</div><div><br></div><div>So here is what I'm doing :</div><div><br></div><div>$> ii(module_to_debug).</div><div>$> im().</div><div><br></div><div>This will launch the visual debugger with the module I want to debug.</div><div>I've been trying to do 2 different things :</div><div><br></div><div>1. Set up a break point in my code</div><div>I'm setting a break point, and setting up the option "Auto attach - On Break".</div><div><br></div><div>My problem is that what I want to step through is behind a gen_server call, and the whole thing times out before I can do any meaningful debugging. </div><div>Is there a way to prevent the timeouts *without* having to change the code that does the call ?</div><div><br></div><div>2. Inspecting the call stack on exception</div><div>In this case I'm just setting the option "Auto attach - On Exit".</div><div><br></div><div>That is where the weirdest behaviors lies, upon reaching the exception I get 2 blank debugger windows, one saying "State: uninterpreted" at the bottom and the other one "Loading module..."</div><div>In my Erlang console I get the following message (which only ever happen if I'm trying to attach the debugger this way) :</div><div><div><br></div><div>$> 13:08:38.300 [error] gen_server dbg_iserver terminated with reason: no match of right hand value [] in dbg_iserver:handle_call/3 line 287</div></div><div>(I'm using lager, hence the formatting).</div><div><br></div><div>All subsequent calls to what leads to the exception behave weirdly :</div><div><br></div><div><div>** exception exit: {noproc,{gen_server,call,</div><div>                                       [undefined,{get_meta,<0.14874.0>},infinity]}}</div><div>$> 13:20:22.337 [error] CRASH REPORT Process <0.14874.0> with 2 neighbours exited with reason: no such process or port in call to gen_server:call(undefined, {get_meta,<0.14874.0>}, infinity) in gen_server:init_it/6 line 330</div></div><div><br></div><div><br></div><div>I'm not sure what I'm doing wrong here, or if there is a real problem. </div><div>If you can eventually point me to an article that explains how to make my two possible workflows above work, that would be great too.</div><div><br></div><div><br></div><div>Thank you,</div><div>Matthieu </div><div><br></div><div><br></div><div>ps: Yes I already know "dbg:tracer(),dbg:p(all,c),dbg:tpl(ess_tcp, x)." Which doesn't entirely solve my problem.</div><div><br></div></div>