Today I Learned

A Hashrocket project

Debug Phoenix Application

In order to debug an Elixir Phoenix application you need to start the app with iex this way:

iex -S mix phx.server

Then you can add this line into your code to add a new debug break point:

require IEx; IEx.pry
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.