Today I Learned

hashrocket A Hashrocket project

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
See More #elixir TILs
Looking for help? At Hashrocket, we 💜 Elixir! From our many Elixir client projects, to sponsoring the Chicago Elixir Meetup, to the source code for this application, we are invested in this community. Contact us today to talk about your Elixir project.