DbgMate.Backport (dbg_mate v0.1.4)
This module includes features that will be enabled in elixir 1.18,
plus a commit for with that was not merged.
Backport module currently includes dbg implementation for:
- pipes
- binary operators: and, or, ||, &&
- code blocks wrapped in brackets
- conditions: case, cond, if, unless, with
To use it just set the config value in config or run this before your dbg call
config :elixir, :dbg_callback, {DbgMate,Backport, :dbg, []})
Summary
Types
Functions
@spec dbg(t(), t(), Macro.Env.t()) :: t()
Default backend for Kernel.dbg/2.
This function provides a default backend for Kernel.dbg/2. See the
Kernel.dbg/2 documentation for more information.
This function:
- prints information about the given
env - prints information about
codeand its returned value (usingoptsto inspect terms) - returns the value returned by evaluating
code
You can call this function directly to build Kernel.dbg/2 backends that fall back
to this function.
This function raises if the context of the given env is :match or :guard.