Check out

Elixir 1.14 Release Candidate in action

Improvements in Debugging

Malreddy Ankanna
blackode
Published in
5 min readAug 6, 2022

--

The article talks about the debugging improvements in Elixir v1.14.0-rc.0. It will walk you through with some good examples and we also see the configuring the debug logic at the end.

Debugging plays a vital role in programming. The better you debug, the best your code will be. It helps you to identify the data transformations and how the code is behaving with certain forms of data.

DEBUGGING

Introducing the new macro from Kernel module called dbg() . It looks like an acronym for debug. I found the name very interesting.

Let’s see this in action.

What it does?

It debugs the code what else then. I have checked this using in a function which calls another function where I have called dbg() macro.

When it reached the debug line it prints the following information.

  1. It gives you the information about the Module name and Function name along with function arity from where this dbg() been called.

--

--

Malreddy Ankanna
blackode

Programmer & Writer, I write about coding, thoughts, ideas, personal musings, technical articles, and tutorials.https://bio.link/blackode