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.21.0-dev.

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)

https://github.com/phenixdigital/phoenix_storybook/blob/main/lib/phoenix_storybook/dbg.ex