Erlang debugging (Beginner) io: format or what?

As a newbie to erlang, I am interested in tracking every step as much as possible in order to understand the flows occurring in my programs.

The first tool at hand fills every space

io:format("~w~n", [MyDebuggingText]), 

Now my questions are:

  • Is there a cool erlang module to simplify and streamline logging, tracking, and debugging?

  • Which one is popular among experienced erlang coders?

Thanks at Advance.

+4
source share
1 answer

I have relied solely on dbg for about 5 years, and so far this has not failed me. I tried redbug and some others, but always get back quickly to dbg, as it ALWAYS exists on the system. The only time it gets hairy is when you have a lot of arguments, but that just means you have to reorganize your code :) Not every debugging tool forces you to stick with good programming methods!

+4
source

Source: https://habr.com/ru/post/1396897/


All Articles