[erlang-questions] get_stacktrace() question
Bjorn Gustavsson
bgustavsson@REDACTED
Mon Jan 5 08:22:13 CET 2009
2009/1/5 Kaiduan Xie <kaiduanx@REDACTED>:
> erlang:get_stacktrace() only returns the list of {Module, Function, Arity}
> (The Arity field in the first tuple may be the argument list of that
> function call instead of an arity integer, depending on the exception). Is
> there any way to return the argument list for ALL functions?
No. The way the BEAM virtual machine works, the arguments are discarded
as soon as they are no longer needed. Only values that will be used again
will be saved in the stack frame.
/Bjorn
--
Björn Gustavsson, Erlang/OTP, Ericsson AB
More information about the erlang-questions
mailing list