The function call erlang:process_display(whereis(user), backtrace) print the process backtrace.
Is it possible to get hold of that backtrace printout in any way (e.g like a binary string)?
That would be mighty nice!
Cheers, Tobbe
The function call erlang:process_display(whereis(user), backtrace) print the process backtrace.
Is it possible to get hold of that backtrace printout in any way (e.g like a binary string)?
That would be mighty nice!
Cheers, Tobbe
Yes, you can use erlang:process_info(Pid, backtrace). Returned value is {backtrace, Bin}, and according to docs:
Binary Bin contains the same information as the output from erlang:process_display(Pid, backtrace).
Hehe geezā¦I searched for ābacktraceā on the Docs page, didnāt see anything useful,
but missed the little link at the bottom saying āsee all 55 resultsāā¦
Ok, case closed, thanks!