IceCream
IceCream is a port of the python package of the same name.
Installation
The package can be installed by adding ice_cream
to your list of dependencies in mix.exs
. It should only be added for the dev
and test
environments.
def deps do
[
{:ice_cream, "~> 0.0.3", only: [:dev, :test]}
]
end
The docs can be found at https://hexdocs.pm/ice_cream.
Usage
IceCream provides 2 macros. IceCream.ic/0
, and IceCream.ic/2
.
Configuration
Default options are configurable.
In addition to location
and function
, any of the Inspect options can be set, such as :limit
# config/dev.exs
config :ice_cream,
location: true,
function: true,
limit: :infinity