Elixir LanguageBetter debugging with IO.inspect and labels


Introduction

IO.inspect is very useful when you try to debug your chains of method calling. It can get messy though if you use it too often.

Since Elixir 1.4.0 the label option of IO.inspect can help

Remarks

Only works with Elixir 1.4+, but I can't tag that yet.