As I study Elixir / Phoenix, I often encounter such a problem.
The problem is that this is due to dependency, so usually I do this:
- open
deps/something/.../thefile.ex - add a debug code, for example
IO.inspect, to find out which parameters are passed - stop the server, recompile with
mix deps.recompile something - check the documentation to see what types are expected of this function.
- compare types and trace the problem to my code
This works, but I would like to improve my process, I know that I can use Iex to start the replica, but I would like to get much faster in terms of:
- in which the inside of the error page itself starts automatically (for example, in the best_errors gem for Rails)
- to find out what arguments went into this method, without my digging (can be solved by the first point)
- the ability to quickly view documentation by the method
Any other tips are also welcome.

source
share