Suggestions for tracing calls through large codebase

I’m looking for libs/tools/techniques to trace call flow or general codepath in a very large elixir codebase.

There are several modules in the codebase that rely strictly on pattern matching vanilla maps over a common function interface, which makes documentation very difficult.

Any suggestions are very much appreciated. Thanks!

1 Like

Hey :wave: have you seen mix xref — Mix v1.14.3 ?
I think it’s the right tool to help here :slightly_smiling_face:

1 Like

The BEAM has an extensive built-in system for tracing - this is a good introduction with lots of links.

3 Likes

Though with elixir you usually want to use wrappers like extrace, which log traces using elixir syntax for values instead of erlang syntax.

2 Likes

No - but looking now, thanks!

I’m not at all surprised to hear it does. Thank you!