Elixir Language Better debugging with IO.inspect and labels

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

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.



Got any Elixir Language Question?