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

vegabook
I’m brand new to Phoenix and I have stripped one of the demo applications to the bone. I just want to get an svg up on the screen. Here i...
New
vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod – where is this set? Thanks.
New
Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
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
komlanvi
Hi everyone, I was playing with phoenix liveView but I run into an issue. I have a form and want to validate each input text when the te...
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

joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 records...
New
hariharasudhan94
Lets say I have map like this fetching from my database %{"_id" => #BSON.ObjectId<58eb1a7a9ad169198c3dXXXX>, "email" => ...
New
Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
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
senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New

We're in Beta

About us Mission Statement