I'm new to Elixir/Phoenix and I was wondering if there was a way to essentially require IEx
for the purpose of IEx.pry
in the same manner that in Ruby/Rails you can add something like
group :test, :development do
gem 'pry', require: 'pry'
end
which would allow you to binding.pry
in essentially any file without needing to include require 'pry'
I'm finding that having to require IEx
on any controller, model, view, etc I want to debug to be tedious.
:prod
environment as well, which OP apparently doesn't want. – Discommode