mike_bianco
Hello! I’ve been super impressed with the community here on the forum. Thanks for the help everyone has provided thus far!
I just finished my first side project in Elixir and there are a couple of things I’m missing from ruby-land, and some minor annoyances I’ve run into. I’m guessing there are extensions or tweaks I can make to eliminate most of these. I’d appreciate any insight—thank you!
Here’s the list of questions & missing tooling I’ve run into:
- Automatically open up a REPL when an exception is thrown. In ruby, this is done via
pry-rescue. Super helpful for quickly diving into the exact context where the error occurs. - In Phoenix, it would be amazing if the debugging plug (which displays a page when an exception is thrown) displays the variables bound in a specific scope so I can reproduce & fix errors quickly. (It would be even better if a REPL could be opened and interacted with on the exception page.
better-errorsdoes this in ruby.) iex -S mix phx.serverfeels weird. It would feel a bit nicer if there was amix phx.consolewhich setup IEx for you.Allow? [Yn]is really annoying when I’m debugging a piece of code. It would be great if you could auto-acceptrequire IEx; IEx.pryrequests.- In a debugging session, I couldn’t figure out how to navigate up and down the call stack. Is there something like
pry-navavailable? - Scan dependencies for security issues. In ruby, this is done via
bundler-audit. - I couldn’t find a VS Code extension with
phoenix*snippets. Is there a way to autogenerate snippets automatically from installed hex packages?
Trending in Questions
One of my LiveView view’s has a very heavy javascript dependency so I want to avoid loading it for every page on the site, while still us...
New
Hi all!
I know that quite a few people use Phoenix LiveView but it is hard to get a more up-to-date list of folks/companies using it. I ...
New
Hello everyone!
I am new to coding with Elixir/Erlang. And i am looking for some utilities for fuzzing testing like AFL++.
Does anyone ...
New
I’m very new to Elixir, so sorry if this is a silly question:
I am wondering what happens to the mailbox of a process when the machine i...
New
I load tested a plain Phoenix chat app backed by Postgres with 100 million messages in it, everything on default settings, to see what br...
New
Hey, I know this has been discussed ad nauseum, but I couldn’t find a definitive answer or at least some consensus around this, so let me...
New
I don’t suppose you can lazy load a library depending on runtime data? For example if it’s a certain user they can lazy load ‘library A’ ...
New
Other Trending Topics
Edit: 2026 May 15 - This post is archived.
Mob is alive!!
Main docs: mob v0.7.11 — Documentation
A bit of explanation for the slightly c...
New
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Hi everyone :waving_hand:
I’ve been working on PhiaUI, an open-source UI component library for Phoenix LiveView, and I wanted to share i...
New
On November 23, 2026, an unauthorized third party exploited a vulnerability in hex.pm (CVE-2026-129514, CVSS 10.0) that let them run comm...
New
@hugobarauna, Dr. Dimitrios Koutmos (my brother) and I (Alex Koutmos) have been hard at work on writing a book on how you can use Elixir ...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #code-sync
- #exunit
- #discussion
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #ai
- #authentication
- #elixirconf-us
- #umbrella
- #full-time-contract
- #blog-post
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-eu
- #distillery
- #security
- #processes
- #api
- #forms
- #hex










Showing Posts 1 to 10- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
joaquinalcerro
Cool.
Take a look at this presentation where Luke explains some debugging techniques:
It helped me hope it does the same for you.
hauleth
Not possible as in most cases the failed process do not exist (unhandled exceptions will kill current process), so there is no “context” you can attach to.
As well I doubt that it would be possible, as Erlang do not provide anything like
Kernel#local_variablesin Ruby. Also as it was said earlier - process is probably dead when the error handling take place, so there is no “context”. Oh, and by the way, as Elixir compiles to Erlang code, and Erlang allows only one assignment per variable name (SSA-like) the “Elixir variables” will have non-meaningful names in Erlang code.There was
mix consolebut it was removed. I do not know what was the rationale. But if you do not like it, then you can always create custom command or alias (within Mix) or shell alias.There is Sobelow, but I do not know if this audit the dependencies. For tool that checks deps for security issues we would need centralised log of such issues, AFAIK there is none, and AFAIK Elixir didn’t had any CVE assigned yet.
How would that even work? Really, I cannot imagine.
LostKobrakai
There’s
Kernel.binding/1: Kernel — Elixir v1.20.2hauleth
Unfortunately it is macro, so it will not work in exception handling.
OvermindDL1
Huh?
If a binding ‘can’ be used in the local scope, then
binding()will show it, it just compiles to a keyword list of bindings names to the bindings themselves, like[a: a, b: b, v: v]. Is there a case where it will not show a binding that ‘can’ in fact be accessed in the local scope?!mike_bianco
Thanks for this tip! Do you happen to remember what version this was in? I spot checked a couple of versions through 1.3 and didn’t see anything.
Ah! Interesting. Is it possible to retrieve a
contextfor the binding call fromSystem.stacktrace? If so, then we could plug it (ha! no pun intended!) into the Plug.Debugger to retrieve bindings for each level of the stack trace. The issue here is the bindings for Plug.Debugger won’t be helpful, we need bindings up the stack.OvermindDL1
That information is already available at compile time via macro’s, so a macro can already access that information.
Hmm?
hauleth
Yeah, but in general you cannot do:
And get value of
a. And that is what would be needed for what @mike_bianco want.OvermindDL1
What
a? There is noain scope at the pointbindingis called? Is there supposed to be ana?michallepicki
In debuggers for many languages it’s possible to “break on exception” where the debugger would attach immediately where an exception happened (not anywhere higher up the stack). This is similar to what Ruby’s pry-rescue does and this is what @mike_bianco wants.
I’m not sure if it’s doable on the BEAM but I’d love to see something like that (preferably using the
:debuggerinstead of IEx but I know many people would prefer the pry)