<div dir="ltr">Hello,<div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 30, 2017 at 7:34 PM, Vans S <span dir="ltr"><<a href="mailto:vans_163@yahoo.com" target="_blank">vans_163@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">When we call erlang:get_stacktrace we can get the function + line where we crashed.<br>
<br>
Is there a way to get the arguments the function we crashed in was called, or a way to get the current line we crashed on, what the arguments<br>
are currently?<br></blockquote><div><br></div><div>You get that information if the error is a function clause, however if you crash for any other reason (badmatch, badarith, etc) within a function you cannot get that information.</div><div><br></div><div>The reason for this is because the compiler may have found that the arguments to the function in which you crashed to be dead and optimized the values away.</div><div><br></div><div>Lukas</div><div><br></div><div>PS. Sorry for late reply, for some reason the gmail spam filter keeps putting all @<a href="http://yahoo.com">yahoo.com</a> e-mails in my spam folder :(</div></div></div></div></div>