erlang call stack
问题 i need to debug some module in foreign system, module has public function foo() - how can I know place (module and function name) from which foo() given module was called? I mean stack of calls. PS: I cannot stop system, all work I can do by reload this module (but with som debug info) -module(given). -export(foo/0). foo() -> %% here is my debug - and i need here(!) known about unknown_module:unknown_foo! ok. --- -module(unknown_module). .. unknown_foo() -> given:foo(). %% see above 回答1: Here