IceCream

IceCream is a port of the python package of the same name.

Never use IO.inspect() again

Use IceCream to inspect any elixir term with an automatically generated label.

Example Usage

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.4", 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