Just like binding.pry
in ruby on rails we can use IEx.pry
in eixir/phoenix.
def fun_name(arguments) do
require IEx; IEx.pry
...
end
In order for this to work we need to start the server through IEx iex -S mix phoenix.server
.
Also like we type exit
in binding.pry
to continu next process we can type respawn()
in elixir.