Prying Open Your Phoenix App
I wanted to do some debugging in a Phoenix app, so I threw
require IEx and
IEx.pry() into my code, only to receive the following error:
Cannot pry ... Is an IEx shell running?
In order to pry into your code, you'll have to start the server from within the Elixir shell.
iex -S mix phx.server