Dbg/2 - Is there a way to add a :label option similar to IO.inspect/2?

Hi,
Would there be a way to add a :label option to dbg/2 similar to IO.inspect/2?
Thanks …

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.

2 Likes

Many thanks …

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 dbg(debug: true)

1 Like