News for hackers. Stuff that matters.
Re:10 years-ish of Elixir by wmock on Thursday January 14, 2021 @03:04PM (#25781717)
I have found Elixir as a whole to be amazing, but the debugging process to be painful. Maybe its because I'm used to using Chrome's developer tools (since I mostly debug JavaScript), but I really wish that debugging on Elixir could be simpler. Using printf's is just too painful and feels backwards.
Re:10 years-ish of Elixir by strzibny on Thursday January 14, 2021 @03:52PM (#25782311)
Debugging in IEx is actually quite nice (https://nts.strzibny.name/elixir-interactive-shell-iex/), but I agree that GUI-wise there is nothing I want to use.
Re:10 years-ish of Elixir by e_proxus on Friday January 15, 2021 @03:00PM (#25795550)
I would recommend you learn the dbg module that comes with Erlang. Its a great tracing debugger able to trace existing code in runtime without having to modify the source. There are also several wrappers on top of the Erlang tracing tools, like Recon for example.
Re:10 years-ish of Elixir by wmock on Friday January 15, 2021 @05:41PM (#25797518)
I'll need to do more research and maybe see if there are videos online showing how other developers debug in Elixir with those libraries.