garytaylor

garytaylor

Stepping Debugger

Hi,
I am new to elixir and loving the performance boost so far. I am a ruby developer primarily.

I have found over the last 5 years that decent test driven development reduces the need to crack open a debugger as my code is tested in smaller and smaller units, but I find a decent debugger invaluable occasionally - sometimes as a learning tool to work out how a framework / gem is working.

Do we have anything like byebug or the ruby debugger where an IDE - or a command line interface can step into, over the next line etc.. and add breakpoints. I really wanted to go through how phoenix works from the request coming in, through to the response going out. But, more importantly, I feel a bit worried about using a language without a debugger. I have seen IEx.pry which is OK, but I prefer not having to change source code as I always forget and leave it in.

Thanks

Gary

Most Liked

sysashi

sysashi

Hello, have you seen this article? Debugging techniques in Elixir

Since people try to write pure functions (without side effects), it’s easier for me to reason about a chain of transformations, also debugging concurrent app is not trivial i think. Personally I find :observer and ad-hoc IO.inspect satisfy my debugging needs :slight_smile:

Where Next?

Popular in Questions Top

rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list. ...
New
electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
ovidiubadita
Hey all, I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
marius95
Hello everyone, I try to use an Javascript Event Handler in my root.html.leex file. Therefore I created a function in the app.js file: ...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New
Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New

Other popular topics Top

dokuzbir
I want to highlight html closing tags when i click a html tag. That works in .html files but doesnt work for html.eex templates. How can...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
sen
Hi All, I set a environment variables in dev.exs , like below code. when i start server, how can i set the ${enable} value? thanks. d...
New
sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
985 44608 311
New
WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New
sergio
Kind of like when jquery came out, it was super necessary. Existing drag and drop libraries have a bunch of baggage to support old browse...
New

We're in Beta

About us Mission Statement