It would be really useful to pipe to dbg and have it return the value so we can inspect in the middle of a list of operations.
[1, 2, 3]
|> List.map foo
|> dbg
|> List.sum
Elixir has this feature.
Yep that is a planned feature
dbg as an expression.
I think someone was even looking into it, but no idea the current state
I started working on the necessary parsing updates, my hope is that I'll have some free time next week :fingers_crossed:
As a temporary solution you can define your own version like this:
dbge = \x ->
dbg x
x
Last updated: Jun 16 2026 at 16:19 UTC