Debugging Phoenix templates with IEx.pry

Quick Tip: to access Phoenix template variables while debugging whith IEx.pry, use the assigns struct:

My Ruby instincts make me go for @post or even @assigns… but those don’t work:

By the way, I miss so much the convenience of a tool like byebug in Elixir / Phoenix. Being able to inspect and step through code and seen stack traces is really useful.