Packages

BEAM stack trace in Gleam: a stack trace of stack frames with module name, function name, arity, file name and line number.

Current section

Files

Jump to
stacky src stacky@internal@examples@example_3@module_with_stacky_call.erl
Raw

src/stacky@internal@examples@example_3@module_with_stacky_call.erl

-module(stacky@internal@examples@example_3@module_with_stacky_call).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]).
-export([some_function_that_calls_stacky/0]).
-spec some_function_that_calls_stacky() -> nil.
some_function_that_calls_stacky() ->
Stack = begin
_pipe = stacky:trace(),
pprint:debug(_pipe)
end,
Frame = begin
_pipe@1 = Stack,
_pipe@2 = stacky:frame(_pipe@1, 0),
pprint:debug(_pipe@2)
end,
_pipe@3 = Frame,
_pipe@4 = stacky:qualified_module_name(_pipe@3),
pprint:debug(_pipe@4),
_pipe@5 = Frame,
_pipe@6 = stacky:function_name(_pipe@5),
pprint:debug(_pipe@6),
_pipe@7 = Frame,
stacky:print_frame(_pipe@7).