DbgMate.Inspect (dbg_mate v0.1.3)

dbg functtions that use IO.inspect() do display results

Summary

Functions

Similar to previous one that it wraps your code in IO.inspect calls used for sho wing the intermediate results and additionally shows the time it took to execute every line.

Wraps your code in IO.inspect calls used for showing the intermediate results. The difference between the upstream dbg function is that it displays as the code is executed and is not waiting until a block of code finishes. It also works with whole modules and functions

Functions

Link to this function

dbg(operation, options, env)

Link to this function

dbg_tc(operation, options, env)

Similar to previous one that it wraps your code in IO.inspect calls used for sho wing the intermediate results and additionally shows the time it took to execute every line.

To use it just set the config value in config or run this before your dbg call

Wraps your code in IO.inspect calls used for showing the intermediate results. The difference between the upstream dbg function is that it displays as the code is executed and is not waiting until a block of code finishes. It also works with whole modules and functions

defmodule X do
  def y do: :z
end
|> dbg

defmodule Y do
  def x do
    :z
  end
  |> dbg
end