Debugging Cowboy applications and Phoenix applications.
I saw this post on Elixir rader http://www.jessetrimble.net/iex-pry-elixir , and thought I would just let it down here, as it is extremely convenient :-).
In Rails (and others) applications, you can simply put the debug tag in your controller, and when the path is launched, it will be split into a debug tag.
When using pry in Phoenix, the above will result in
Cannot pry
It turns out that the Phoenix process should be running in an IEx session, this is done as such
iex -S mix phoenix.server
Now instead you will see
Request to pry
MartinElvar Jun 29 '15 at 8:00 2015-06-29 08:00
source share