I need to debug some module in foreign system. The module has public function foo() - how can I know place (module and function name) from which foo() given module
foo()
Here's a simple trick:
Trace = try throw(42) catch 42 -> erlang:get_stacktrace() end, erlang:display(Trace)