Pretty Inspect pi() function for puts-sytle debugging
It prints timestamp, file with line and function, from which was called.
By default inspected expression is used as label.
The output is colorized.
Returns inspected value, so can be seamlessly used in pipes.
All these features help to identify easily the place, from which the inspect was called.
defmodule MyModule do
def func(variable_name) do
Which will output in console, when MyModule.func/1 is called:
22:15:58 [my_module.ex:6: MyModule.func/1]