As I am learning Elixir/Phoenix, I happen to run into an issue like this often.
The problem is that this comes from a dependency, so normally I do this:
- open
deps/something/.../thefile.ex - add some debug code like
IO.inspectto see what params are being passed - stop server, recompile with
mix deps.recompile something - check the documentation to see what types are expected to that function
- compare the types and trace down the problem to my code
This works but I'd like to improve my process, I know I can use Iex to start a repl, but I'd like to get much faster in terms of:
- having a repl inside of the error page itself started automatically (like in better_errors gem for Rails)
- having a way to see what arguments went into that method without me digging around (could be solved by the former point)
- being able to see a method's documentation quickly
Also any other tips are greatly appreciated.
