Would there be a way to add a :label option to dbg/2 similar to IO.inspect/2?
You can configure
dbg to use a different function under the hood. Check the docs, there’s an example specifically using
IO.inspect - Kernel — Elixir v1.16.0-dev.
Thanks, I wasn’t aware of that!
I just coded my own
dbg callback (and I can still fall back to the native Elixir
dbg by using