We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
Elixir Debugging Tip: Finding Executed Functions Quickly
319
clicks

Source: elixirstreams.com
The content describes a debugging tip for Elixir developers to track which functions are being called during test execution. Instead of manually adding custom dbg/1 statements within each function, the author suggests leveraging Elixir's __ENV__ macro, which contains various pieces of contextual information. By calling __ENV__.function/0 within the functions, developers can automatically obtain the name of the function currently executing without having to specify it, simplifying the process of debugging and validating tests.
Related posts
© HashMerge 2025