[erlang-questions] Get call trace from function

attila.rajmund.nohl <>
Thu Feb 15 17:44:53 CET 2007


Hello!

Is it possible to get the call trace that lead to a particular function
call? I have a code like this:

handle_errors(_) ->
 	?INTERNAL_ERROR.

and I'd like to log how did the code end up at this internal error,
which function called the handle_errors, that function was called by
which function, etc.  Simply crashing here could be an option, but the
code didn't use to crash and I don't want to change this.

 				Bye,NAR
-- 
"Beware of bugs in the above code; I have only proved it correct, not
  tried it."



More information about the erlang-questions mailing list