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 a
mix 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-accept
require 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
- Scan dependencies for security issues. In ruby, this is done via
- I couldn’t find a VS Code extension with
phoenix*snippets. Is there a way to autogenerate snippets automatically from installed hex packages?