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@example.erl
Raw

src/stacky@example.erl

-module(stacky@example).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]).
-export([main/0]).
-spec main() -> binary().
main() ->
_pipe = stacky:trace(),
_pipe@1 = pprint:debug(_pipe),
_pipe@2 = stacky:frame(_pipe@1, 0),
_pipe@3 = pprint:debug(_pipe@2),
_pipe@4 = stacky:gleam_module_name(_pipe@3),
pprint:debug(_pipe@4).